开发者

do we need to deploy war after changing property file

开发者 https://www.devze.com 2023-02-13 03:24 出处:网络
Do we need t开发者_如何学JAVAo deploy war after changing the property file in java?At least you may have to restart the application so that it reads the new property file. So re-deploying the entire a

Do we need t开发者_如何学JAVAo deploy war after changing the property file in java?


At least you may have to restart the application so that it reads the new property file. So re-deploying the entire application may not be necessary.


you do need war to deploy if property file is not loaded each time it is needed


Yes, unless you make your context reloadable. To do that update your conf/context.xml, adding the "reloadable" attribute to the root node like so:

<Context reloadable="true">

Take a look at the Tomcat Config Docs.

0

精彩评论

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