首页 > 其他 > 详细

Stuts2的"struts.devMode"设置成true后,不起作用,仍需要重启tomcat

时间:2016-08-15 20:38:46      阅读:233      评论:0      收藏:0      [点我收藏+]
在项目的struts.xml加入了常量配置:<constant name="struts.devMode" value="true" />后,重启服务器。
项目后续开发中,修改action.java或者struts.xml仍然需要重启tomcat,和没有配置这个常量是一样的。

不要用
<constant name="struts.devMode" value="true" />
改成:
<constant name="struts.configuration.xml.reload" value="true"/>
就OK了

下面是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"/>-->

Stuts2的"struts.devMode"设置成true后,不起作用,仍需要重启tomcat

原文:http://www.cnblogs.com/nucdy/p/5774106.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!