Hi,
I'm not a struts user but have you added these lines to your security.xml
Spring configuration file?
<bean id="lifecycleBeanPostProcessor"
class="org.apache.shiro.spring.LifecycleBeanPostProcessor"/>
<bean
class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"
depends-on="lifecycleBeanPostProcessor"/>
<bean id="securityManager"
class="org.apache.shiro.web.mgt.DefaultWebSecurityManager">
</bean>
<bean
class="org.apache.shiro.spring.security.interceptor.AuthorizationAttributeSourceAdvisor">
<property name="securityManager" ref="securityManager"/>
</bean>
I don't know a lot of detail of what these postprocessors are or how they
work, but they do enable Shiro annotations for us on service methods.
Best wishes
Richard
--
View this message in context:
http://shiro-user.582556.n2.nabble.com/Spring-Autowired-annotation-is-not-working-anymore-after-use-shiro-Annotation-RequiresAuthenticationd-tp7578849p7578850.html
Sent from the Shiro User mailing list archive at Nabble.com.