在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" />

原文地址:https://www.cnblogs.com/SpringSmallGrass/p/3001689.html