메모

spring 설정 파일 구분

ds-jeung 2022. 7. 15. 14:42

web.xml

spring에서 가장 먼저 시작되는 파일로 fiter처리나 servlet 경로설정을 한다

servlet-context.xml

component-scan 으로 pakage를 설정해준다

접근할 view 파일의 유형과 경로를 설정해준다

root-context.xml

DB와 커넥션할 설정을 해준다

sqlSession 설정을 해준다