spring boot GetMapping
Spring Boot 还提供了更简洁的编写 URL映射的方法,如
@GetMapping(“),它等价于
@RequestMapping(value =”/",method =RequestMethod.GET)。
除此之外还有下面的写法。
@GetMapping:处理GET请求。
@PostMapping:处理POST请求。
@DeleteMapping:处理删除请求。
@PutMapping:处理修改请求。
spring boot GetMapping
Spring Boot 还提供了更简洁的编写 URL映射的方法,如
@GetMapping(“),它等价于
@RequestMapping(value =”/",method =RequestMethod.GET)。
除此之外还有下面的写法。
@GetMapping:处理GET请求。
@PostMapping:处理POST请求。
@DeleteMapping:处理删除请求。
@PutMapping:处理修改请求。