Details
-
Improvement
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.9.1
-
None
Description
There is already an issue created https://issues.apache.org/jira/projects/SHIRO/issues/SHIRO-804.
But when @EnableAspectJAutoProxy enabled, spring actually creates an instance of AnnotationAwareAspectJAutoProxyCreator but not DefaultAdvisorAutoProxyCreator. In this situation, there will be two proxy creators in the same context, which leads to methods be proxied twice also .
The fix may remove the type value of the @ConditionalOnMissingBean.
@Bean @DependsOn("lifecycleBeanPostProcessor") @ConditionalOnMissingBean(name = AopConfigUtils.AUTO_PROXY_CREATOR_BEAN_NAME) @Override public DefaultAdvisorAutoProxyCreator defaultAdvisorAutoProxyCreator() { return super.defaultAdvisorAutoProxyCreator(); }