get json string
get json string
this is specific to how your interface is defined, whether it's POST body or query string.
@PostMapping("/test")
public void test(@RequestBody SomeRequest request){
}
use @ RequestBody
Previous: Can ES6's Class stored value function (setter) be asynchronous?
Next: Delete row operation Minumum row number is 0 on poi export
Spring,xml,@Controller,@Autowired, @RequestMapping,@Service; ,xml: <context:component-scan base-package="..." > : <mvc:annotation-driven > ?? ...
for example: what is the relationship and difference between MVC and web MVC, SpringMVC and Spring web MVC? ...
1. I wanted to try spring mvc configuration without xml, but when I added @ EnableWebMvc to the java config class, the project failed to start. 2.HelloConfig: @Configuration @EnableWebMvc @ComponentScan public class HelloConfig implements WebMvcConf...
1. Files with suffixes jsp and html exist. When the suffix is set to jsp, access to the corresponding url can be accessed. When it is html, the access url cannot find resources. Why? I have guessed that it is because url-pattern is set to " ", but why...
there is an one-to-many association in the model object used on the page: <form:form action="" commandName="form" method="post"> how do I set up one-to-many associated objects? for example, there are classes: pub...
I want to get a common getUser static method so that I don t have to manually convert token to user in every controller public class UserUtil { @Autowired private static HttpServletRequest request; @Autowired private static HttpServle...
looked at the information on the Internet and said that it was because the OPTIONS request could not carry a custom header request. Is this true? error message Failed to load http: 192.168.1.107:8066 talk queryList: Response to preflight request do...