首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

struts2 拦截器中用到spring中的bean,拦截器要如何配置

2012-09-20 
struts2 拦截器中用到spring中的bean,拦截器要怎么配置?struts2 拦截器中用到spring中的bean,拦截器要怎么

struts2 拦截器中用到spring中的bean,拦截器要怎么配置?
struts2 拦截器中用到spring中的bean,拦截器要怎么配置?

XML code
<interceptors>        <interceptor name="login" class="net.test.interceptor.CheckLoginInterceptor" />        <interceptor-stack name="myStack">            <interceptor-ref name="login" />            <interceptor-ref name="defaultStack" />        </interceptor-stack>    </interceptors>


CheckLoginInterceptor中引用了一个spring里的bean,怎么注入呀?

[解决办法]
接分~

热点排行