开发者

After modifying xml files, do I have to always restart the server?

开发者 https://www.devze.com 2023-01-11 00:45 出处:网络
I\'m using eclipse(galileo) and struts2 framework and tiles. It seems that modifying xml files(struts.xml, tiles-config.xml, et开发者_如何学JAVAc) is not affected until I restart the server.

I'm using eclipse(galileo) and struts2 framework and tiles.

It seems that modifying xml files(struts.xml, tiles-config.xml, et开发者_如何学JAVAc) is not affected until I restart the server.

It is very annoying and it takes more time. Is there any way not to restart?


Strictly, you don't have to restart the entire server, just the application itself. But to answer your question more directly, the configuration files (by default at any rate) are just read on startup and the values are held for the life of the application.

For Tiles you might try this init parameter, but I've not tried it personally, so I can't vouch for it.

For Struts, try setting devMode (Link) to true.

<constant name="struts.devMode" value="true" />

For changes to web.xml, and others, I think there's a setting at the application server level to control that, but I doubt that it's standard across all application servers.

0

精彩评论

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