Please correct me if I am wrong. Both can be used for Data Binding.
The question is when to use @ModelAttribute?
@RequestMapping(val
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.
@ModelAttribute
As for @RequestBody, all the data will be pass to the server through a full JSON body.
@RequestBody