该用户从未签到
|
Stuts2的"struts.devMode"设置成true后,不起作用的解决办法
# x t7 X( g9 ~/ w0 A不用- V" l- T* ]7 f5 m G8 a" X
<constant name="struts.devMode" value="true" />
3 y) u0 W% b9 M7 U改成5 X& H+ q& ~: S
<constant name="struts.configuration.xml.reload" value="true"/>$ T" S) _0 O. i4 ]0 r, d
有人说是因为tomcat加了空格的问题,具体不清楚。
e3 _# `1 H5 g: x- d i下面是4个开发模式常用配置的简介---( ]/ a) }+ A- i
<!-- 开启使用开发模式,详细错误提示 -->
4 t+ [& o, ?3 e; O- G1 d! J <!-- <constant name="struts.devMode" value="true"/>-->' ^& t% C# j+ O, [4 `
<!-- 指定每次请求到达,重新加载资源文件 -->3 E4 h' x9 b# o+ L; N
<!-- <constant name="struts.i18n.reload" value="true"/>-->% V2 W& \# [+ ]: e5 {) X
<!-- 指定每次配置文件更改后,自动重新加载 -->
. _: `0 @1 G5 ~5 t; Q <!-- <constant name="struts.configuration.xml.reload" value="true"/>-->
6 s$ T$ p* t j8 \/ n- x" r' w; z <!-- 指定XSLT Result使用样式表缓存 -->
! @) m: Z f* o6 J2 W <!-- <constant name="struts.xslt.nocache" value="true"/>-->+ _1 F& g- y# z; f f4 ^
这样就好使了,网上copy的哈5 f, Z4 X3 \3 j; y9 U; j
( R* x) @& q6 w$ t
, V7 \9 G1 }" h u+ g3 X |
|