본문 바로가기

Tip/Spring

web.xml 에서 classpath 사용시 주의사항


<webapp>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:**/META-INF/spring/root-context.xml</param-value>
</context-param>
..... [생략] ....

위와 같은 App을 여러개 설정후 한 서버에 올릴경우 다른 App에 영향을 줄 수 있으므로 주의!!!

<webapp>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:/META-INF/spring/root-context.xml</param-value>
</context-param>
..... [생략] ....