{"id":138796,"date":"2025-11-20T18:33:00","date_gmt":"2025-11-20T16:33:00","guid":{"rendered":"https:\/\/www.javacodegeeks.com\/?p=138796"},"modified":"2025-11-20T12:56:21","modified_gmt":"2025-11-20T10:56:21","slug":"feign-http-get-request-body-example","status":"publish","type":"post","link":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html","title":{"rendered":"Feign HTTP GET Request Body Example"},"content":{"rendered":"<p>Feign is a declarative HTTP client in the Spring ecosystem that simplifies calling external APIs. While <a href=\"https:\/\/www.javacodegeeks.com\/2018\/10\/making-rest-communication-easy-with-feign-clients.html\" target=\"_blank\" rel=\"noreferrer noopener\">Feign <\/a>makes it easy to define REST clients, one common issue we face is attempting to send a GET request with a request body, a pattern that is technically allowed by HTTP but not widely supported by servers. In this article, we will explore how to handle this scenario in a Spring Boot application using Feign.<\/p>\n<h2 class=\"wp-block-heading\">1. Project Setup<\/h2>\n<p>We\u2019ll set up a simple Spring Boot project that includes Feign support.<\/p>\n<pre class=\"brush:xml\">\n\t\t&lt;dependency&gt;\n\t\t\t&lt;groupId&gt;org.springframework.cloud&lt;\/groupId&gt;\n\t\t\t&lt;artifactId&gt;spring-cloud-starter-openfeign&lt;\/artifactId&gt;\n\t\t&lt;\/dependency&gt;\n\n<\/pre>\n<p>We include <code>spring-cloud-starter-openfeign<\/code> for Feign support.<\/p>\n<p><strong>Main Application Class<\/strong><\/p>\n<pre class=\"brush:java\">\n@SpringBootApplication\n@EnableFeignClients\npublic class FeignGetBodyApplication {\n\n\tpublic static void main(String[] args) {\n\t\tSpringApplication.run(FeignGetBodyApplication.class, args);\n\t}\n\n}\n<\/pre>\n<p><code>@EnableFeignClients<\/code> scans for Feign client interfaces in the application. This is required for Spring to generate proxy implementations at runtime.<\/p>\n<h2 class=\"wp-block-heading\">2. Trying to Send a GET Request With a Body<\/h2>\n<p><a href=\"https:\/\/datatracker.ietf.org\/doc\/html\/rfc7231#section-4.3.1\" target=\"_blank\" rel=\"noreferrer noopener\">HTTP\/1.1 specification (RFC 7231)<\/a> technically allows GET requests to contain a body, but many servers and clients ignore or reject it. If we attempt this directly with Feign, we\u2019ll encounter issues.<\/p>\n<p><strong>Example Feign Client (Problematic Approach)<\/strong><\/p>\n<pre class=\"brush:java\">\n@FeignClient(name = \"exampleClient\", url = \"http:\/\/localhost:8080\")\npublic interface ExampleClient {\n\n    @GetMapping(\"\/filter\")\n    String filterWithBody(@RequestBody FilterCriteria criteria);\n}\n<\/pre>\n<pre class=\"brush:java\">\nclass FilterCriteria {\n\n    private String category;\n    private String type;\n\n    public String getCategory() {\n        return category;\n    }\n\n    public void setCategory(String category) {\n        this.category = category;\n    }\n\n    public String getType() {\n        return type;\n    }\n\n    public void setType(String type) {\n        this.type = type;\n    }\n}\n<\/pre>\n<p>Here, we attempt to send a <code>FilterCriteria<\/code> object in the body of a GET request. When you run this code, Feign throws an exception or the server ignores the request body because GET requests are generally not designed to include one.<div style=\"display:inline-block; margin: 15px 0;\"> <div id=\"adngin-JavaCodeGeeks_incontent_video-0\" style=\"display:inline-block;\"><\/div> <\/div><\/p>\n<p>To demonstrate this, we\u2019ll create a runner class that triggers the Feign client call.<\/p>\n<pre class=\"brush:java\">\n@Component\npublic class FeignTestRunner implements CommandLineRunner {\n\n    private static final Logger logger = LoggerFactory.getLogger(FeignTestRunner.class);\n    private final ExampleClient exampleClient;\n\n    public FeignTestRunner(ExampleClient exampleClient) {\n        this.exampleClient = exampleClient;\n    }\n\n    @Override\n    public void run(String... args) {\n        FilterCriteria criteria = new FilterCriteria();\n        criteria.setCategory(\"Books\");\n        criteria.setType(\"Fiction\");\n\n        try {\n            String response = exampleClient.filterWithBody(criteria);\n            logger.info(\"Response: {}\", response);\n        } catch (Exception ex) {\n            logger.error(\"Error occurred while calling Feign client: {}\", ex.getMessage());\n        }\n    }\n}\n<\/pre>\n<p>When you run the application, Feign will attempt to send a GET request with a request body. Most servers and Feign itself will not support this properly, resulting in an exception similar to the following:<\/p>\n<pre class=\"brush:bash\">\n: Error occurred while calling Feign client: [405] during [GET] to [http:\/\/localhost:8080\/filter] \n[{\"timestamp\":\"2025-11-13T18:36:22.481+00:00\",\"status\":405,\"error\":\"Method Not Allowed\",\"path\":\"\/filter\"}]\n<\/pre>\n<p>The error confirms that the HTTP GET method does not support sending a body with the request.<\/p>\n<h2 class=\"wp-block-heading\">3. Using @SpringQueryMap to Fix the GET Request<\/h2>\n<p>Spring Cloud OpenFeign provides <code>@SpringQueryMap<\/code>, which maps object properties to query parameters. This approach allows us to simulate sending a &#8220;body&#8221; for a GET request without breaking HTTP conventions.<\/p>\n<p><strong>Fixed Feign Client<\/strong><\/p>\n<pre class=\"brush:java\">\n@FeignClient(name = \"exampleClient\", url = \"http:\/\/localhost:8080\")\npublic interface ExampleClient {\n\n    @GetMapping(\"\/filter\")\n    String filterWithBody(@SpringQueryMap FilterCriteria criteria);\n}\n<\/pre>\n<p>Now, calling this client with a <code>FilterCriteria<\/code> object like:<\/p>\n<pre class=\"brush:java\">\n    @Override\n    public void run(String... args) {\n        FilterCriteria criteria = new FilterCriteria();\n        criteria.setCategory(\"Books\");\n        criteria.setType(\"Fiction\");\n\n        try {\n            String response = exampleClient.filterWithBody(criteria);\n            logger.info(\"Response: {}\", response);\n        } catch (Exception ex) {\n            logger.error(\"Error occurred while calling Feign client: {}\", ex.getMessage());\n        }\n    }\n<\/pre>\n<p>Will result in a proper GET request.<\/p>\n<pre class=\"brush:bash\">\nGET \/filter?category=Books&amp;type=Fiction\n<\/pre>\n<p><strong>Example Controller Endpoint<\/strong><\/p>\n<pre class=\"brush:java\">\n@RestController\npublic class FilterController {\n\n    @GetMapping(\"\/filter\")\n    public String filterItems(@RequestParam String category, @RequestParam String type) {\n        return \"Filtered items in category: \" + category + \", type: \" + type;\n    }\n}\n<\/pre>\n<p><strong>Logged Output<\/strong>:<\/p>\n<pre class=\"brush:plain\">\ncom.jcg.example.FeignTestRunner: Response: Filtered items in category: Books, type: Fiction\n<\/pre>\n<p>The <code>FilterCriteria<\/code> object is converted into query parameters using <code>@SpringQueryMap<\/code>, allowing the controller to receive them as expected and return a response, which avoids the issues of sending a GET request body and ensures full compatibility with HTTP standards.<\/p>\n<h2 class=\"wp-block-heading\">4. Conclusion<\/h2>\n<p>In this article, we explored how to handle GET requests with structured data using Feign in Spring Boot. We saw that sending a body in a GET request is not reliably supported and can lead to errors, such as method not allowed exceptions. To address this, we demonstrated how to use <code>@SpringQueryMap<\/code> to convert an object\u2019s fields into query parameters, enabling the Feign client to communicate properly with the server.<\/p>\n<h2 class=\"wp-block-heading\">5. Download the Source Code<\/h2>\n<p>This article explored how to handle an HTTP GET request with a body when using Feign.<\/p>\n<div class=\"download\"><strong>Download<\/strong><br \/>\nYou can download the full source code of this example here: <a href=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2025\/11\/feign-get-body.zip\"><strong>feign http get request body<\/strong><\/a>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Feign is a declarative HTTP client in the Spring ecosystem that simplifies calling external APIs. While Feign makes it easy to define REST clients, one common issue we face is attempting to send a GET request with a request body, a pattern that is technically allowed by HTTP but not widely supported by servers. In &hellip;<\/p>\n","protected":false},"author":128888,"featured_media":240,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[4794,4793,4792,4795,1708,992],"class_list":["post-138796","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-enterprise-java","tag-springquerymap","tag-feign-client","tag-http-get","tag-query-parameters","tag-rest-api","tag-spring-cloud"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Feign HTTP GET Request Body Example - Java Code Geeks<\/title>\n<meta name=\"description\" content=\"Learn how to handle a Feign HTTP GET request body in Spring Boot using @SpringQueryMap for proper parameter mapping.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Feign HTTP GET Request Body Example - Java Code Geeks\" \/>\n<meta property=\"og:description\" content=\"Learn how to handle a Feign HTTP GET request body in Spring Boot using @SpringQueryMap for proper parameter mapping.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html\" \/>\n<meta property=\"og:site_name\" content=\"Java Code Geeks\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/javacodegeeks\" \/>\n<meta property=\"article:author\" content=\"https:\/\/web.facebook.com\/omos.aziegbe\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-20T16:33:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"150\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Omozegie Aziegbe\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/OAziegbe\" \/>\n<meta name=\"twitter:site\" content=\"@javacodegeeks\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Omozegie Aziegbe\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html\"},\"author\":{\"name\":\"Omozegie Aziegbe\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/7d3eac6e45542536e961129ae0fb453e\"},\"headline\":\"Feign HTTP GET Request Body Example\",\"datePublished\":\"2025-11-20T16:33:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html\"},\"wordCount\":475,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"keywords\":[\"@SpringQueryMap\",\"Feign Client\",\"HTTP GET\",\"Query Parameters\",\"REST API\",\"Spring Cloud\"],\"articleSection\":[\"Enterprise Java\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html\",\"name\":\"Feign HTTP GET Request Body Example - Java Code Geeks\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"datePublished\":\"2025-11-20T16:33:00+00:00\",\"description\":\"Learn how to handle a Feign HTTP GET request body in Spring Boot using @SpringQueryMap for proper parameter mapping.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html#primaryimage\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2012\\\/10\\\/spring-logo.jpg\",\"width\":150,\"height\":150,\"caption\":\"spring-interview-questions-answers\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/feign-http-get-request-body-example.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Enterprise Java\",\"item\":\"https:\\\/\\\/www.javacodegeeks.com\\\/category\\\/java\\\/enterprise-java\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Feign HTTP GET Request Body Example\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#website\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"name\":\"Java Code Geeks\",\"description\":\"Java Developers Resource Center\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\"},\"alternateName\":\"JCG\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.javacodegeeks.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#organization\",\"name\":\"Exelixis Media P.C.\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2022\\\/06\\\/exelixis-logo.png\",\"width\":864,\"height\":246,\"caption\":\"Exelixis Media P.C.\"},\"image\":{\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/javacodegeeks\",\"https:\\\/\\\/x.com\\\/javacodegeeks\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/#\\\/schema\\\/person\\\/7d3eac6e45542536e961129ae0fb453e\",\"name\":\"Omozegie Aziegbe\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/cropped-jcg_profile_pic-96x96.jpg\",\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/cropped-jcg_profile_pic-96x96.jpg\",\"contentUrl\":\"https:\\\/\\\/www.javacodegeeks.com\\\/wp-content\\\/uploads\\\/2023\\\/12\\\/cropped-jcg_profile_pic-96x96.jpg\",\"caption\":\"Omozegie Aziegbe\"},\"description\":\"Omos Aziegbe is a technical writer and web\\\/application developer with a BSc in Computer Science and Software Engineering from the University of Bedfordshire. Specializing in Java enterprise applications with the Jakarta EE framework, Omos also works with HTML5, CSS, and JavaScript for web development. As a freelance web developer, Omos combines technical expertise with research and writing on topics such as software engineering, programming, web application development, computer science, and technology.\",\"sameAs\":[\"https:\\\/\\\/web.facebook.com\\\/omos.aziegbe\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/omosaziegbe\\\/\",\"https:\\\/\\\/x.com\\\/https:\\\/\\\/twitter.com\\\/OAziegbe\"],\"url\":\"https:\\\/\\\/www.javacodegeeks.com\\\/author\\\/omozegie-aziegbe\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Feign HTTP GET Request Body Example - Java Code Geeks","description":"Learn how to handle a Feign HTTP GET request body in Spring Boot using @SpringQueryMap for proper parameter mapping.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html","og_locale":"en_US","og_type":"article","og_title":"Feign HTTP GET Request Body Example - Java Code Geeks","og_description":"Learn how to handle a Feign HTTP GET request body in Spring Boot using @SpringQueryMap for proper parameter mapping.","og_url":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html","og_site_name":"Java Code Geeks","article_publisher":"https:\/\/www.facebook.com\/javacodegeeks","article_author":"https:\/\/web.facebook.com\/omos.aziegbe","article_published_time":"2025-11-20T16:33:00+00:00","og_image":[{"width":150,"height":150,"url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","type":"image\/jpeg"}],"author":"Omozegie Aziegbe","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/OAziegbe","twitter_site":"@javacodegeeks","twitter_misc":{"Written by":"Omozegie Aziegbe","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html#article","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html"},"author":{"name":"Omozegie Aziegbe","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/7d3eac6e45542536e961129ae0fb453e"},"headline":"Feign HTTP GET Request Body Example","datePublished":"2025-11-20T16:33:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html"},"wordCount":475,"commentCount":0,"publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","keywords":["@SpringQueryMap","Feign Client","HTTP GET","Query Parameters","REST API","Spring Cloud"],"articleSection":["Enterprise Java"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html","url":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html","name":"Feign HTTP GET Request Body Example - Java Code Geeks","isPartOf":{"@id":"https:\/\/www.javacodegeeks.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html#primaryimage"},"image":{"@id":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html#primaryimage"},"thumbnailUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","datePublished":"2025-11-20T16:33:00+00:00","description":"Learn how to handle a Feign HTTP GET request body in Spring Boot using @SpringQueryMap for proper parameter mapping.","breadcrumb":{"@id":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html#primaryimage","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2012\/10\/spring-logo.jpg","width":150,"height":150,"caption":"spring-interview-questions-answers"},{"@type":"BreadcrumbList","@id":"https:\/\/www.javacodegeeks.com\/feign-http-get-request-body-example.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.javacodegeeks.com\/"},{"@type":"ListItem","position":2,"name":"Java","item":"https:\/\/www.javacodegeeks.com\/category\/java"},{"@type":"ListItem","position":3,"name":"Enterprise Java","item":"https:\/\/www.javacodegeeks.com\/category\/java\/enterprise-java"},{"@type":"ListItem","position":4,"name":"Feign HTTP GET Request Body Example"}]},{"@type":"WebSite","@id":"https:\/\/www.javacodegeeks.com\/#website","url":"https:\/\/www.javacodegeeks.com\/","name":"Java Code Geeks","description":"Java Developers Resource Center","publisher":{"@id":"https:\/\/www.javacodegeeks.com\/#organization"},"alternateName":"JCG","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.javacodegeeks.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.javacodegeeks.com\/#organization","name":"Exelixis Media P.C.","url":"https:\/\/www.javacodegeeks.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2022\/06\/exelixis-logo.png","width":864,"height":246,"caption":"Exelixis Media P.C."},"image":{"@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/javacodegeeks","https:\/\/x.com\/javacodegeeks"]},{"@type":"Person","@id":"https:\/\/www.javacodegeeks.com\/#\/schema\/person\/7d3eac6e45542536e961129ae0fb453e","name":"Omozegie Aziegbe","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2023\/12\/cropped-jcg_profile_pic-96x96.jpg","url":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2023\/12\/cropped-jcg_profile_pic-96x96.jpg","contentUrl":"https:\/\/www.javacodegeeks.com\/wp-content\/uploads\/2023\/12\/cropped-jcg_profile_pic-96x96.jpg","caption":"Omozegie Aziegbe"},"description":"Omos Aziegbe is a technical writer and web\/application developer with a BSc in Computer Science and Software Engineering from the University of Bedfordshire. Specializing in Java enterprise applications with the Jakarta EE framework, Omos also works with HTML5, CSS, and JavaScript for web development. As a freelance web developer, Omos combines technical expertise with research and writing on topics such as software engineering, programming, web application development, computer science, and technology.","sameAs":["https:\/\/web.facebook.com\/omos.aziegbe","https:\/\/www.linkedin.com\/in\/omosaziegbe\/","https:\/\/x.com\/https:\/\/twitter.com\/OAziegbe"],"url":"https:\/\/www.javacodegeeks.com\/author\/omozegie-aziegbe"}]}},"_links":{"self":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/138796","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/users\/128888"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/comments?post=138796"}],"version-history":[{"count":0,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/posts\/138796\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media\/240"}],"wp:attachment":[{"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/media?parent=138796"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/categories?post=138796"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javacodegeeks.com\/wp-json\/wp\/v2\/tags?post=138796"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}