美文网首页
关于 Struts2 中的 StrutsPrepareAndEx

关于 Struts2 中的 StrutsPrepareAndEx

作者: 枝头残月野狼嚎嗷嗷呜 | 来源:发表于2016-10-13 21:32 被阅读0次

    N年没玩Struts了,最近突然脑洞开了想做点东西玩玩。
    配了一个SSH环境,发现web.xml中用到的 filter类 是StrutsPrepareAndExecuteFilter
    而不是很多写Struts2配置的文章里的 FilterDispatcher

    <web-app>
        <display-name>Archetype Created Web Application</display-name>
        <filter>
            <filter-name>struts2</filter-name>
            <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
        </filter>
    
        <filter-mapping>
            <filter-name>struts2</filter-name>
            <url-pattern>/*</url-pattern>
        </filter-mapping>
        <listener>
            <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>
    </web-app>
    

    于是在网上查了一下,上链接
    http://blog.sina.com.cn/s/blog_6ac4c6cb010190ml.html

    相关文章

      网友评论

          本文标题:关于 Struts2 中的 StrutsPrepareAndEx

          本文链接:https://www.haomeiwen.com/subject/qsqgyttx.html