如何在使用update重新部署时保留xml配置?

时间:2011-02-09 11:53:07

标签: tomcat deployment war tomcat-manager

我正在使用tomcat管理器来部署我的war文件。要更新战争,请使用以下网址:

http://localhost:8080/manager/deploy?path=/example&war=file:/path/example.war&update=true

问题在于,使用这个,配置的xml(在Catalina / localhost / example.xml下)将被删除。

我该如何保存它?

1 个答案:

答案 0 :(得分:0)

将您的配置放在您的webapp META-INF/context.xml中,tomcat将负责其余部分。