@RequestMapping、@PostMapping、@GetMapping区别
1.@RequestMapping、@PostMapping、@GetMapping均为映射请求路径,可作用于类或方法上。2.@RequestMapping(value = "xxx", method = RequestMehod.POST)等价@PostMapping("xxx")3.@RequestMapping(value = "xxx", method = RequestMehod.GET)等价于@GetMapping("xxx")...
原创
2022-08-03 23:57:13 ·
2272 阅读 ·
2 评论