Today uses @RequestBody comment
@PutMapping("group")
public int updateSpec(@RequestBody SpecGroup group) {
System.out.println(group);
int i = specificationService.updataSpe(group);
return i;
}
Because the front came through a json data, it is necessary to turn about. If you come through the front-end is also not resolved after the turn. For example stringify parsed into objects it is also possible.
So far we have been involved in the
@RequestParam
@PathVariable
@RestController
@RequestMapping
@ResponseBody
@Get/Post/PutMapping
These annotations, and serialization. The sequence of on and springify confused.