菜鸟的天空

专注追求IT技术的进步

ActionContextCleanUp is deprecated

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)替代。

 

阅读更多
个人分类: java web
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

ActionContextCleanUp is deprecated

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭