@RequestMapping 和 @GetMapping @PostMapping 区别

@RequestMapping   和  @GetMapping @PostMapping 区别

 

@GetMapping是一个组合注解,是@RequestMapping(method = RequestMethod.GET)的缩写。

 

@PostMapping是一个组合注解,是@RequestMapping(method = RequestMethod.POST)的缩写。

 

posted @ 2018-01-24 16:51  多啦C梦  阅读(90528)  评论(4编辑  收藏  举报