어노테이션 정리 하기
1. @RequestMapping과 @GetMapping의 차이
@RequestMapping과 @GetMapping의 차이@RequestMapping(value = "/users", method = RequestMethod.GET) public List<User> getAllUsers() { return userService.getAllUsers(); }
@GetMapping("/users") public List<User> getAllUsers() { return userService.getAllUsers(); }
2. 왜 @RequestMapping을 선호할까?
@RequestMapping을 선호할까?3. @GetMapping과 같은 메서드 전용 어노테이션의 장점
@GetMapping과 같은 메서드 전용 어노테이션의 장점결론
Last updated