인터페이스 3일차 (Controller)
Controller MVC 디자인 패턴의 Controller에 해당 View 와 Model 의 접점 Client의 Request에 따라 모델의 상태를 변경 Request URL의 end point에 해당하는 메서드를 실행 End point 에 대한 Routing을 담당 Service의 결과를 Client에게 Response Spring Boot Controller 작성 @RestController JSON 형태의 Response를 반환하기 위한 Controller 임을 명시 REST API 개발을 위해 사용됨 (Response로 HTML을 반환하지 않음) @Controller + @ResponseBody의 형태 @GetMapping(path) REST API의 GET method를 이용한 Request ..
2023.01.05