springboot中http 的get post put delete请求

组合注解(RequestMapping的变形)

@GetMapping = @RequestMapping(method = RequestMethod.GET)
@PostMapping = @RequestMapping(method = RequestMethod.POST)
@PutMapping = @RequestMapping(method = RequestMethod.PUT)
@DeleteMapping = @RequestMapping(method = RequestMethod.DELETE

猜你喜欢

转载自www.cnblogs.com/rh-fernando/p/11235797.html