文档说如果你有一个上下文文件:
$CATALINA_HOME/conf/Catalina/localhost/myapp.xml
Run Code Online (Sandbox Code Playgroud)
它不会被上下文文件替换:
mywebapp.war/META-INF/context.xml
Run Code Online (Sandbox Code Playgroud)
它写在这里:http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
仅当$ CATALINA_BASE/conf/[enginename]/[hostname] /中的应用程序不存在上下文文件时,才在应用程序文件内的/META-INF/context.xml中的单个文件中.
但是每当我重新部署战争时,它都会用/META-INF/context.xml替换这个myapp.xml!
它为什么这样做,我该如何避免呢?
感谢名单