요청맵핑연습
-
HTTP 요청 맵핑하기 7부: 맵핑 연습 문제SPRING/스프링 MVC 2021. 6. 27. 15:57
다음 요청을 처리할 수 있는 핸들러 메소드를 맵핑하는 @RequestMapping (또는 @GetMapping, @PostMapping 등)을 정의하세요. 1. GET /events 2. GET /events/1, GET /events/2, GET /events/3, 3. POST /events CONTENT-TYPE: application/json ACCEPT: application/json 4. DELETE /events/1, DELETE /events/2, DELETE /events/3, 5. PUT /events/1 CONTENT-TYPE: application/json ACCEPT: application/json, PUT /events/2 CONTENT-TYPE: application/json ..