Skip to main content

@PatchMapping

Learn @PatchMapping (Controllers, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes @PatchMapping maps HTTP PATCH requests; it is the shortcut for @RequestMapping(method = RequestMethod.PATCH) and applies a partial update to a resource. Only changed fields are sent, for example {"email":"new@x.com"} ; all other fields stay as they are. Typical use : change one field such as a status, a password or a profile detail without sending the whole object.

More lessons in Controllers