>>> FilterDispatcher <<< is deprecated! Please use the new filters!
来源:互联网 发布:学网络营销好还是java 编辑:程序博客网 时间:2024/06/05 15:01
在struts2.3.7下,web.xml中使用
会出现
***********************************************************************
* 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, use StrutsPrepareAndExecuteFilter
instead or StrutsPrepareFilter
and StrutsExecuteFilter
if needing using the ActionContextCleanUp
filter in addition to this one
解决方法,将web.xml上述代码改为:
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
</filter-class>
<init-param>
<param-name>struts.action.extendion</param-name>
<param-value>action</param-value>
</init-param>
</filter>
- >>> FilterDispatcher <<< is deprecated! Please use the new filters!
- >>> FilterDispatcher <<< is deprecated! Please use the new filters!
- >>> FilterDispatcher <<< is deprecated! Please use the new filters!
- FilterDispatcher <<< is deprecated! Please use the new filters!
- >>> FilterDispatcher <<< is deprecated! Please use the new filters!
- >>> FilterDispatcher <<< is deprecated! Please use the new filters!
- FilterDispatcher <<< is deprecated! Please use the new filters!
- ActionContextCleanUp <<< is deprecated! Please use the new filters警告
- FilterDispatcher is depredated!plesae use the new filters
- Deprecated: main(): The Mongo class is deprecated, please use the MongoClient class in
- >>> FilterDispatcher <<< is deprecated!
- >>> FilterDispatcher <<< is deprecated!
- FilterDispatcher is deprecated!
- jQuery 的 event.returnValue is deprecated. Please use the standard event.preventDefault() instead. 警告
- ruby 2.0.0p0 : DL is deprecated, please use Fiddle
- The attribute 'worker.controller.balanced_workers' is deprecated - please check
- FilterDispatcher已被标注为过时解决办法 >>> FilterDispatcher <<< is deprecated!
- FilterDispatcher已被标注为过时解决办法 >>> FilterDispatcher <<< is deprecated!
- CodeForces-672C-Recycling Bottles
- 23种设计模式(15)--State模式
- 盘点最实用的大数据可视化分析工具(1/4)
- 跟谷歌学一个多次点击事件的逻辑处理
- Box2D C++ 教程-匀速运动
- >>> FilterDispatcher <<< is deprecated! Please use the new filters!
- 我们应当怎样学习HTML和CSS
- STM32F207 USART+DMA代码+个人理解
- Box2D C++ 教程-旋转到指定角度
- NYOJ 92 图像有用区域
- c/c++ digraph and trigraph
- 我像是一个你可有可恶的影子
- HoloLens开发手记-硬件细节 Hardware Detail
- Box2D C++ 教程-跳跃