
오늘은 RESTful 을 공부하다가 새로운 어노테이션을 알게되었다! 업무에서도 아주 유용하게 적용할 수 있을 것 같아서 기록해둔다ㅎㅎ 1. 문서 Spring Framework Documentation Spring MVC - URI Pattern 2. How to 기존 Spring MVC에서 URL을 통해 GET타입으로 Paramter를 넘겨받기위해서는 Controller에 @RequestParam 어노테이션을 이용하여 파라미터를 추가했다 @RequestMapping("/bookings") public ModelAndView getBooking(@RequestParam Long booking) { // ... } @PathVariable은 아래와 같이 바꿔 RESTful 서비스의 URI 형태로 쓸수 있다!..