Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-804

Avoid conflicts with spring boot aop

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Resolved
    • 1.7.0
    • 2.0.0-alpha, 1.9.0
    • Integration: Spring
    • None

    Description

      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

      Attachments

        Activity

          People

            lhazlewood Les Hazlewood
            skywalker_s skywalker
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h
                2h