web.xml
<context-param><param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/applicationContext*.xml</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
contextConfigLocation이라는 파라미터를 쓰면
Context Loader가 load할 수 있는 설정파일을 여러개 쓸 수 있다.
이 문장들이 없을 시 default로 /WEB-INF/applicationContext.xml(spring설정파일)을 쓰게 된다.
댓글 없음:
댓글 쓰기