首页 > 数据库技术 > 详细

springboot - SqlSessionFactoryBean falls in circular dependencies by Spring Boot's DataSourceInitializer

时间:2017-06-14 15:11:24      阅读:1653      评论:0      收藏:0      [点我收藏+]

springboot mybatis配置多数据源的时候,报错:There is a circular dependency between 7 beans in the application context: xxx

经查,这是mybatis-spring的bug,延迟加载问题:https://github.com/mybatis/spring/issues/58

问题复现的版本组合是:

spring-boot-starter-parent 1.4.1.RELEASE

mybatis 3.2.8

mybatis-spring 1.3.0

问题解决:

mybatis-spring 降到 1.2.2

springboot - SqlSessionFactoryBean falls in circular dependencies by Spring Boot's DataSourceInitializer

原文:http://www.cnblogs.com/dannyyao/p/7008850.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!