The simplest way for my understanding is, the @ModelAttribute
will take a query string. so, all the data are being pass to the server through the url.
As for @RequestBody
, all the data will be pass to the server through a full JSON body.
More Related Contents:
- Converting from String to custom Object for Spring MVC form Data binding?
- Using JSF as view technology of Spring MVC
- Spring Boot not serving static content
- ${employee.id} from List in JSP throws java.lang.NumberFormatException: For input string: “id”
- What’s the difference between and in servlet?
- Spring boot – Not a managed type
- Spring 3 MVC resources and tag
- How to prevent parameter binding from interpreting commas in Spring 3.0.5?
- @Scope(“prototype”) bean scope not creating new bean
- Binding a list in @RequestParam
- When use ResponseEntity and @RestController for Spring RESTful applications
- Spring CORS No ‘Access-Control-Allow-Origin’ header is present
- Enable HAL serialization in Spring Boot for custom controller method
- Send datas from html to controller in Thymeleaf?
- Spring HandlerInterceptor vs Servlet Filters
- No Spring WebApplicationInitializer types detected on classpath
- Spring + Web MVC: dispatcher-servlet.xml vs. applicationContext.xml (plus shared security)
- Can I make a custom controller mirror the formatting of Spring-Data-Rest / Spring-Hateoas generated classes?
- SpringServletContainerInitializer cannot be cast to javax.servlet.ServletContainerInitializer
- How to handle HTTP OPTIONS requests in Spring Boot?
- Spring MVC Annotated Controller Interface with @PathVariable
- Neither BindingResult nor plain target object for bean name available as request attr [duplicate]
- Multiple antMatchers in Spring security
- An Authentication object was not found in the SecurityContext – Spring 3.2.2
- Scope of a Spring-Controller and its instance-variables
- How to use with an tag?
- Redirect to dynamic URL in Spring MVC
- Spring – How to stream large multipart file uploads to database without storing on local file system [duplicate]
- Understanding contexts in Spring MVC
- Spring security 4 custom login j_spring_security_check return http 302