当前位置: 代码迷 >> J2EE >> struts2 拦截器中用到spring中的bean,拦截器要如何配置
  详细解决方案

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

热度:90   发布时间:2016-04-22 00:57:16.0
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,怎么注入呀?

------解决方案--------------------
接分~
  相关解决方案