简介
- @GetMapping是一个组合注解,是@RequestMapping(method =
RequestMethod.GET)的缩写。该注解将HTTP Get 映射到 特定的处理方法上。
- 同理PostMapping也是一个组合注解,是@RequestMapping(method =
RequestMethod.POST)的缩写。

特别说明,@RequestMapping如果没有指定请求方式,将接收Get、Post、Head、Options等所有的请求方式。

相关文章:

  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2021-12-23
  • 2021-05-25
  • 2022-12-23
  • 2021-07-17
猜你喜欢
  • 2021-09-22
  • 2022-12-23
  • 2021-10-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案