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.
精彩评论