
Spring MVC的@PostMapping注解
@PostMapping
映射一个POST请求
Spring MVC新特性 提供了对Restful风格的支持
@GetMapping,处理get请求 @PostMapping,处理post请求 @PutMapping,处理put请求 @DeleteMapping,处理delete请求
@PostMapping(value = "/user/login")等价于
@RequestMapping(value = "/user/login",method = RequestMethod.POST)点击,进入
👁️ 阅读量:0
© 版权声明:本文《Spring MVC的@PostMapping注解》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686619135a307188.html。