首先说一下基本的区别和概念 最后举例说明一.RequestMapping和GetMapping的区别RequestMapping和GetMapping都是用来定义请求路径的注解,区别就是GetMapping是RequestMapping的简些形式 @GetMapping是一个组合注解,是@RequestMapping(method = RequestMethod.GET)的缩写 例如:

- 阅读全文 -