在struts2中,每次修改了struts.xml都要重启tomcat服务器,那么怎么样设置才能修改了struts.xml而不需要重启tomcat的服务器呢??

在struts.xml中添加一个常量就行了,在struts.xml中可以设置那些常量,我们可以到struts-core/org.apache.struts2/static/default.properties中去查找

将开发模式设置为true就行了,即<constant name="struts.devMode" value="true" />

posted @ 2013-04-05 22:38  springstudent  阅读(501)  评论(0编辑  收藏  举报