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,怎么注入呀?
------解决方案--------------------
接分~