@DeleteMapping("/users/{userId}")等价于@RequestMapping(value="/users/{userId}",method=RequestMethod.DELETE)

    1. @DeleteMapping("/users/{userId}")
    2. public ResponseEntity deleteUser(@PathVariable(value = "userId") Long userId){
    3. ......
    4. }