Spring Boot请求类型区别
@GetMapping
@PostMapping
@PutMapping
@DeleteMapping
对应
@RequestMapping(method = RequestMethod.GET)
@RequestMapping(method = RequestMethod.POST)
@RequestMapping(method = RequestMethod.PUT)
@RequestMapping(method = RequestMethod.DELETE)
所有的增删改查都可以使用POST请求
但是增删改查使用对应的请求(PUT、DELETE等)更加规范