@GetMapping、@PostMapping注解

        @GetMapping是@RequestMapping(method = RequestMethod.GET)缩写的组合注解,用于将 HTTP 的get 请求映射到特定处理程序的方法注解。

        @PostMapping是@RequestMapping(method = RequestMethod.POST)缩写的组合注解,用于将 HTTP 的post 请求映射到特定处理程序的方法注解。

猜你喜欢

转载自blog.csdn.net/YMYYZ/article/details/128835008