The bean 'dataSource', defined in BeanDefinition defined in class path resource [org/springframework

1错误场景:

整合mybatis  启动是异常,之前整合没什么问题的,现在整合springcloud 的时候出现错误

2:问题: springboot 和springcloud 版本不兼容

3:解决:

The bean 'dataSource', defined in BeanDefinition defined in class path resource [org/springframework_第1张图片

main:
    allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册

 

你可能感兴趣的:(错误)