开发者

How to preserve xml configuration when redeploying using update?

开发者 https://www.devze.com 2023-02-10 00:14 出处:网络
I\'m using tomcat manager to deploy my war files. To update a war I use the following url: http://localhost:8080/manager/deploy?path=/example&war=file:/path/example.war&update=true

I'm using tomcat manager to deploy my war files. To update a war I use the following url:

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

The problem is that using th开发者_StackOverflowis, the xml with the configuration (under Catalina/localhost/example.xml), is erased.

How can I preserve it?


Place your configuration in your webapp's META-INF/context.xml and tomcat will take care of the rest.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号