Stuts2的"struts.devMode"设置成true后,不起作用的解决的方法

不用
 <constant name="struts.devMode" value="true" />
改成
<constant name="struts.configuration.xml.reload" value="true"/>
有人说是由于tomcat加了空格的问题,详细不清楚。


以下是4个开发模式经常使用配置的简单介绍---
    <!-- 开启使用开发模式。具体错误提示 -->
    <!-- <constant name="struts.devMode" value="true"/>-->
    <!-- 指定每次请求到达,又一次载入资源文件 -->
    <!-- <constant name="struts.i18n.reload" value="true"/>-->
    <!-- 指定每次配置文件更改后。自己主动又一次载入 -->
    <!-- <constant name="struts.configuration.xml.reload" value="true"/>-->
    <!-- 指定XSLT Result使用样式表缓存 -->
    <!-- <constant name="struts.xslt.nocache" value="true"/>-->

原文地址:https://www.cnblogs.com/cynchanpin/p/7141144.html