Myeclipse在用struts2出现的版本过低提示

来源:互联网 发布:javascript高级教程 编辑:程序博客网 时间:2024/04/29 13:48
***********************************************************************
*                               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

0 0
原创粉丝点击