关闭

ActionContextCleanUp is deprecated

767人阅读 评论(0) 收藏 举报
分类:

struts2升级到struts2.1.3之后,ActionContextCleanUp过滤器就已经过时了,如果在web.xml中配置了这个过滤器,则会在控制台提示:

***********************************************************************************
*                                 WARNING!!!                                                                                *
*                                                                                                                                       *
* >>> ActionContextCleanUp <<< 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中用这个过滤器了。

ActionContextCleanUp自2.1.3开始由StrutsPrepareFilter和StrutsExecuteFilter的组合

(也就是StrutsPrepareAndExecuteFilter)替代。

 

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:61867次
    • 积分:936
    • 等级:
    • 排名:千里之外
    • 原创:27篇
    • 转载:34篇
    • 译文:0篇
    • 评论:7条
    文章分类
    最新评论