Changing xml/property files after war deployment without restarting Tomcat 7

In my web-app (maven, spring) I have the following project structure: MyWebApp --src --main --java ... --resources --spring spring_stuff.xml ... mywebapp.properties mylogs.xml --webapp --spring --appServlet servlet-context.xml ... pom.xml One I deploy the `WAR` file to a Tomcat server using the `Manager App`, the war gets unpacked and the files above are available in the `webapp` folder. However, if I am not allowed to modify the files since they are 'in-use' by the web server. What can I do differently to be able to modify the property files while Tomcat is running and without having to restart it? Is there a way (maybe in maven/spring) to set up a project so that different properties are enabled/disabled depending on where the WAR gets deployed?

以上就是Changing xml/property files after war deployment without restarting Tomcat 7的详细内容,更多请关注web前端其它相关文章!

赞(0) 打赏
未经允许不得转载:web前端首页 » JavaScript 答疑

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

前端开发相关广告投放 更专业 更精准

联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏