How use PUT method in Springboot Restcontroller?
This code will work fine. You must specify request mapping in class level or in function level.
@RequestMapping(value = "/student/info", method = RequestMethod.PUT)
public @ResponseBody String updateStudent(@RequestBody Student student){
LOG.info(student.toString());
return "ok";
}