***********************************************************************
* WARNING!!! *
* *
* >>> FilterDispatcher <<< is deprecated! Please use the new filters! *
* *
* This can be a source of unpredictable problems! *
* *
* Please refer to the docs for more details! *
* http://struts.apache.org/2.x/docs/webxml.html *
* *
* WARNING!!! *
* *
* >>> FilterDispatcher <<< is deprecated! Please use the new filters! *
* *
* This can be a source of unpredictable problems! *
* *
* Please refer to the docs for more details! *
* http://struts.apache.org/2.x/docs/webxml.html *
* *
***********************************************************************
当出现这种情况的时候,说明你的配置版本过低了,只需在web.xml中该一句话就没问题了 。
把web.xml中的
org.apache.struts2.dispatcher.FilterDispatcher 换成:
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter