开发者

do we need to deploy war after changing property file

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜