说明:struts2的默认配置项可以到struts2-core-2.1.8.1.jar中该路径下default.properies找到:
<span style="font-size:18px;"> <span style="color:#3333ff;"><!-- 配置为开发模式:配置为开发模式,当改变配置文件时,不需要重新部署,将实时生效 --></span>
<constant name="<span style="color:#ff0000;"><strong>struts.devMode</strong></span>" value="true" />
<span style="color:#3333ff;"><!-- 把扩展名配置为action --></span>
<constant name="<strong><span style="color:#ff0000;">struts.action.extension</span></strong>" value="action" />
<span style="color:#3333ff;"><!-- 把主题配置为simple:使用struts2标签时不会生成多余标签 --></span>
<constant name="<span style="color:#ff0000;"><strong>struts.ui.theme</strong></span>" value="simple" /></span>