@PostMapping

映射一个POST请求

Spring MVC新特性 
提供了对Restful风格的支持

@GetMapping,处理get请求 
@PostMapping,处理post请求 
@PutMapping,处理put请求 
@DeleteMapping,处理delete请求

@PostMapping(value = "/user/login")

等价于

@RequestMapping(value = "/user/login",method = RequestMethod.POST)
  •  

Spring MVC的@PostMapping注解 
点击,进入 
Spring MVC的@PostMapping注解

相关文章:

  • 2022-01-16
  • 2021-07-06
  • 2021-10-23
  • 2021-06-30
  • 2022-02-26
  • 2021-12-27
  • 2021-09-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-05-04
  • 2021-11-06
  • 2021-06-14
  • 2022-12-23
相关资源
相似解决方案