struts2.1.6出现at com.opensymphony.xwork2.util.FileManager$FileRevision.needsReloading

struts2中的配置文件中只要添加以下配置,那么以后修改配置文件不用重启tomcat的方法。于是自己手动试了试,没想到这一试竟然试出问题来

要添加的代码:

  1. <constant name="struts.devMode" value="true" />  
Xhtml代码
  1. <constant name="struts.devMode" value="true" />  

struts.devMode也就是struts的开发模式,默认值为false,这里修改为true就可以了,以后一旦就该这个文件中的配置就不用去重启tomcat,着实方便许多。但是问题也出现了:

经过google一搜,有说将<constant name="struts.devMode" value="true" />中的值改为false的,我要的就是true,改成false不违背了我本意,后来经过多次查找发现有人说这个属于struts2.1的 bug,tomcat目录不能有空格。我仔细一瞧我的tomcat路径,还真出现空格的。。。比如D:Program FilesApache Software FoundationTomcat 6.0改成E:Tomcat6

原文地址:https://www.cnblogs.com/thesnail/p/3842515.html