spring/spring & boot

spring/spring & boot

spring 설정 파일 : web.xml , servlet-context, root-context

1. web.xml web.xml은 Was(ex : Tomcat)가 처음 실행할 때 web.xml 파일을 제일 먼저 읽고 거기에 정의된 구성대로 프로젝트를 설정해준다. 쉽게 말하자면 내 Spring project의 구성을 설정하는 파일이고 제일 먼저 설정되는 파일 web.xml 내부에서 spring 관련 설정 파일로 servlet-context.xml, root-context.xml 이 존재 contextConfigLocation /WEB-INF/spring/root-context.xml org.springframework.web.context.ContextLoaderListener encodingFilter org.springframework.web.filter.CharacterEncodingFilte..

wooweee
'spring/spring & boot' 카테고리의 글 목록