I am trying to carry JSON data in an HTTP GET request message, but my Spring MVC server can't seem to retrieve the JSON data from the GET request body.
相关问题
- HTML <form> tag causing Rails form to submit
- org.apache.commons.fileupload.disk.DiskFileItem is
- @DateTimeFormat in Spring produces off-by-one day
- Java-Reflection - find the Arguments and the annot
- Json string from LocalDateTime(java 8) in Spring M
相关文章
- C#中 public virtual string Category { get; }这么写会报错:
- spring-mvc a标签带参怎样向controller发送请求。路径格式?
- Java spring framework - how to set content type?
- Java/Spring MVC: provide request context to child
- Spring 5 Web Reactive - Hot Publishing - How to us
- Spring MVC project not able to publish and run… Me
- Intercept @RequestHeader exception for missing hea
- “400 Bad Request” response for AJAX request
HTTP's
GET
method does not include a request body as part of the spec. Spring MVC respects the HTTP specs. Specifically, servers are allowed to discard the body. The request URI should contain everything needed to formulate the response.If you need a request body, change the request type to POST, which does include the request body.