@RequestMapping:可以接受get和request请求,以及其他请求
@GetMapping:@RequestMapping(method = RequestMethod.GET)的缩写,只能接收get请求
@PostMapping:@RequestMapping(method = RequestMethod.POST)的缩写,只能接收post请求
@RequestMapping、@GetMapping、@PostMapping的区别
最新推荐文章于 2023-07-08 01:56:53 发布