当前位置:网站首页>@RequestMapping、@GetMapping

@RequestMapping、@GetMapping

2022-07-06 16:49:00 Daily enlightenment

@RequestMapping: To configure url mapping

@GetMapping: Used to process the request method Get type

@PostMapping: Used to process the request method Post type

example :@RequestMapping(value="/get/{id}",method=RequestMethod.GET) Equivalent to @GetMapping("/get/{id}")

Get Request and Post Differences in requests :

Get: Is to request data from a specified resource

Post: Submit a request to the specified resource to be processed

原网站

版权声明
本文为[Daily enlightenment]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131314159854.html