You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "skywalker (Jira)" <ji...@apache.org> on 2020/12/16 04:22:00 UTC
[jira] [Created] (SHIRO-804) Avoid conflicts with spring boot aop
skywalker created SHIRO-804:
-------------------------------
Summary: Avoid conflicts with spring boot aop
Key: SHIRO-804
URL: https://issues.apache.org/jira/browse/SHIRO-804
Project: Shiro
Issue Type: Improvement
Components: Integration: Spring
Affects Versions: 1.7.0
Reporter: skywalker
Assignee: Les Hazlewood
If there is a spring-boot-starter-aop dependency in the project's classpath, Spring will automatically create a bean named "org.springframework.aop.config.internalAutoProxyCreator".
This will cause Spring beans to be proxied twice. If one is a JDK dynamic proxy and the other is a CGLIB proxy, then the system will fail to start.
We may be able to avoid such errors by modifying the defaultAdvisorAutoProxyCreator method of the ShiroAnnotationProcessorAutoConfiguration class.
I have tested this modification in my own project and it works. Sorry, my English is not very good, this paragraph is written using Google Translate
--
This message was sent by Atlassian Jira
(v8.3.4#803005)