[Spring] Spring@MVC 구조 및 @annotation 살펴보기.
[Spring] Spring@MVC 프로젝트 세팅하기 글을 먼저 참고해보면 좋을 것 같다.!@ 아주 기초적인(?) 흐름을 이해하기 위해 기록한 글이다.** 틀린 내용이 있다면 피드백 감사히 받겠습니다..! 전체적인 구조는 아래와 같다. | Config root-context.xml 을 JAVA 코드로 옮긴 Config 파일.@Configuration : 환경 설정 파일이라는 것을 명시@ComponentScan("com.cristoval.web.model") : @Compoment어노테이션 및 streotype(@Service, @Repository, @Controller.) annotation 부여된 Class들을 자동으로 Scan하여 Bean으로 등록12345@Configuration @Componen..
Web/Spring
2020. 10. 21. 22:24