You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shiro.apache.org by "Francois Papon (Jira)" <ji...@apache.org> on 2022/01/27 08:27:00 UTC

[jira] [Updated] (SHIRO-804) Avoid conflicts with spring boot aop

     [ https://issues.apache.org/jira/browse/SHIRO-804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francois Papon updated SHIRO-804:
---------------------------------
    Fix Version/s: 1.9.0

> 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
>            Priority: Minor
>             Fix For: 2.0.0, 1.9.0
>
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> 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.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@shiro.apache.org
For additional commands, e-mail: issues-help@shiro.apache.org