[SpringMVC] Spring MVC 파헤치기 | 요청편
·
Spring
오늘은 Spring MVC의 기능들을 깊게 살펴보겠습니다.(복습용..) 1. 요청 매핑@ResrController@Slf4jpublic class MappingController { @RequestMapping("/hello/basic") public String helloBasic() { log.info("helloBasic"); return "ok"; }} @ResetController : 원래 @Controller는 반환값이 String이면 이 string이 뷰 이름으로 인식됩니다. 그래서 뷰를 찾고 렌더링하게 되는데 @RestController는 반환 값으로 바로 HTTP 메시지 바디에 입력으로 들어가게 됩니다. @RequestMapping : /hello-basic..