>>> FilterDispatcher <<< is deprecated! Please use

在struts2.3.7下,web.xml中使用
>>> FilterDispatcher <<< is deprecated! Please use_第1张图片
会出现
***********************************************************************

                             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           *
*                                                                    *
***********************************************************************
原因在于:

Class FilterDispatcher

Deprecated. Since Struts 2.1.3, useStrutsPrepareAndExecuteFilterinstead or StrutsPrepareFilterand StrutsExecuteFilterif needing using the ActionContextCleanUpfilter in addition to this one
解决方法,将web.xml上述代码改为:
>>> FilterDispatcher <<< is deprecated! Please use_第2张图片


你可能感兴趣的:(>>> FilterDispatcher <<< is deprecated! Please use)