原文:ShardingJDBC报错修复The bean 'dataSource', defined in class path resource [org/apache/shardingsphere/shardingjdbc/spring/boot/SpringBootConfiguration.class], could not be registered.

报错信息 这个意思是SpringBoot中已经有一个名称相同的Bean,并且不允许重写这个Bean 解决方法 在application.properties中添加如下配置:允许重写重复的Bean并覆盖掉上一个Bean ...

2021-12-29 12:48 0 2849 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2026 CODEPRJ.COM