我正在使用tomcat管理器来部署我的war文件。要更新战争,请使用以下网址:
http://localhost:8080/manager/deploy?path=/example&war=file:/path/example.war&update=true
问题在于,使用这个,配置的xml(在Catalina / localhost / example.xml下)将被删除。
我该如何保存它?
答案 0 :(得分:0)
将您的配置放在您的webapp META-INF/context.xml
中,tomcat将负责其余部分。