在struts.xml中添加一个常量就行了,在struts.xml中可以设置那些常量,我们可以到struts-core/org.apache.struts2/static/default.properties中去查找
将开发模式设置为true就行了,即<constant name="struts.devMode" value="true" />