- org.springframework.web.bind.annotation.GetMapping注解的作用是将HTTP GET请求映射到特定的handler方法上。
- @GetMapping是一个合成注解,作为
@RequestMapping(method = RequestMethod.GET)
的一种快捷方式。
08-15
977
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-05
2151
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
@RequestMapping(method = RequestMethod.GET)
的一种快捷方式。