I have Spring application that handles REST APIs. All are working well until I converted the XML configuration to annotation configuration. At that time I have a problem in a few APIs. that APIs are PUT request With @ModelAttribute. that ajax requested data not binding in rest request.
@RequestMapping(method=RequestMethod.PUT,value="/user")
public ResponseEntity<?> updatePlanSponsor(@ModelAttribute UserDTO user,BindingResult errors, @CookieValue(value="userID") Long userId){
------
}
All other requests like PUT with application/JSON, POST with multipart/form-data; In case of PUT with multipart/form-data; form not binding in dto class