Struts2DevelopmentModeExample

来源:互联网 发布:专业图片编辑软件 编辑:程序博客网 时间:2024/06/05 10:00

在struts2开发中,你可以提升你的开发速度,如:自动配置,properties文件从加载,和额外的logging和debugging

默认情况下,struts2 develop模式是关闭的。

Enable the struts2 development mode

struts.properties

struts.devMode = true
struts.xml

<struts> <constant name="struts.devMode" value="true" /></struts>
Disable the struts2 development mode

struts.properties

struts.devMode = false
struts.xml

<struts> <constant name="struts.devMode" value="false" /></struts>

原创粉丝点击