<struts>
<bean class="org.apache.struts2.dispatcher.FilterDispatcher" static ="true"/>
...
</struts>
我们可以从struts.properties中获取
struts.devMode=true
从而设置FilterDispatcher中方法
public static void overrideDevMode(boolean devMode)
{
devModeOverride.set(Boolean.valueOf(devMode));
}