Stuts2的"struts.devMode"设置成true后,不起作用,仍需要重启tomcat
2017-11-18 00:04
357 查看
在项目的struts.xml加入了常量配置:
后,修改struts.xml仍然需要重启tomcat,和没有配置这个常量是一样的。
不要用
改成:
就可以了。
2.指定每次请求到达,重新加载资源文件
3.指定每次配置文件更改后,自动重新加载
4.指定XSLT Result使用样式表缓存
<constant name="struts.devMode" value="true" />
后,修改struts.xml仍然需要重启tomcat,和没有配置这个常量是一样的。
不要用
<constant name="struts.devMode" value="true" />
改成:
<constant name="struts.configuration.xml.reload" value="true"/>
就可以了。
下面是4个开发模式常用配置的简介
1.开启使用开发模式,详细错误提示<constant name="struts.devMode" value="true"/>
2.指定每次请求到达,重新加载资源文件
<constant name="struts.i18n.reload" value="true"/>
3.指定每次配置文件更改后,自动重新加载
<constant name="struts.configuration.xml.reload" value="true"/>
4.指定XSLT Result使用样式表缓存
<constant name="struts.xslt.nocache" value="true"/>
相关文章推荐
- Stuts2的"struts.devMode"设置成true后,不起作用,仍需要重启tomcat
- Stuts2的"struts.devMode"设置成true后,不起作用,仍需要重启tomcat
- Stuts2的"struts.devMode"设置成true后,不起作用,仍需要重启tomcat
- Stuts2的"struts.devMode"设置成true后,不起作用的解决办法
- Stuts2的"struts.devMode"设置成true后,不起作用的解决的方法
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题 .
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- <constant name="struts.devMode" value="true"/> 启动tomcat报错。
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- Struts2笔记:struts.devMode value="true"导致的错误
- struts2配置常量<constant name="struts.devMode">,将值修改为true(开发模式有什么好处)的好处
- struts2中<constant name="struts.devMode" value="true" />的作用
- struts.xml中为什么加上<constant name="struts.devMode" value="true" />就出错
- struts2配置常量<constant name="struts.devMode">,将值修改为true(开发模式有什么好处)的好处
- struts2配置常量<constant name="struts.devMode">,将值修改为true(开发模式有什么好处)的好处
- <constant name="struts.devMode" value="true" />