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

posted @ 2019-07-24 09:13  Fernando_Y  阅读(535)  评论(0编辑  收藏  举报