@RequestMapping:可以接受get和request请求,以及其他请求
@GetMapping:@RequestMapping(method = RequestMethod.GET)的缩写,只能接收get请求
@PostMapping:@RequestMapping(method = RequestMethod.POST)的缩写,只能接收post请求
@RequestMapping、@GetMapping、@PostMapping的区别
猜你喜欢
转载自blog.csdn.net/qq_42449963/article/details/105165631
今日推荐
周排行