现在的位置: 首页 > 综合 > 正文

FilterDispatcher已被标注为过时

2013年12月04日 ⁄ 综合 ⁄ 共 381字 ⁄ 字号 评论关闭

好久没写代码了,决定今天再温习下代码,搞下struts2,发现错误重重,哈哈偷笑~~~~~~

调了好多bug之后,myeclipse运行正常,打开网页出现一个


后来网上查了一下原来FilterDispatcher已被标注为过时 ,哎,我还没用几次就过时了呢大哭,原来的struts.xml配置是酱紫的:~~~

现在改成一下这样就可以正常使用了:

原因在于:

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



     坚持自己的梦想,我一直在路上!

抱歉!评论已关闭.