授权注解时为什么在springMVC.xml里securityManager注入不进去
<!--注解授权时开启--> <aop:config proxy-target-class="true"></aop:config> <bean class="org.apache.shiro.spring.LifecycleBeanPostProcessor"></bean> <bean class="org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor"> <property name="securityManager" ref="securityManager"></property> </bean>
ref="securityManager"报红,我的securityManager是配置在spring.xml的配置文件里面,所以在springMVC.xml里面注入securityManager报错 我能理解,但老师在springMVC.xml为什么能注入