mybatis-mapper / mapper

MyBatis Mapper
https://mapper.mybatis.io
Apache License 2.0
325 stars 47 forks source link

springboot 2.6.1 报错循环引用,不知道是不是哪里配置不对? #24

Closed yao00jun closed 2 years ago

yao00jun commented 2 years ago

2021-12-12 16:53:45 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - [report,40] -


APPLICATION FAILED TO START


Description:

The dependencies of some of the beans in the application context form a cycle:

┌──->──┐ | io.mybatis.activerecord.spring.boot.autoconfigure.MapperProviderAutoConfiguration └──<-──┘

Action:

Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.

abel533 commented 2 years ago

最新版本已经解决。