多数据源和mybatis-plus 报错

提问 2 4105
Leooooo
Leooooo 2018-08-08
版本:renren-security 开发环境:
项目在集成多数据源和mybatis-plus时,添加dao,service会报错,请问是什么原因 The dependencies of some of the beans in the application context form a cycle: img[//cdn.renren.io/1b8aa201808081447192470.png] img[//cdn.renren.io/f57cd201808081447302622.png]
本帖标签: 多数据源 renren-security
回帖
  • [pre] @SpringBootApplication(exclude={DataSourceAutoConfiguration.class}) @Import({DynamicDataSourceConfig.class}) [/pre] 这个加上
    0
  • Leooooo
    Leooooo (楼主)
    2018-08-08
    @Mark 可以了,谢谢,再请教一下,请问在renren-admin中没有加注解是怎么实现的啊??
    0
本帖已结贴