- 📚 相关推荐文章
- 解决:Consider renaming one of the beans or enabling overriding by setting spring.main.allow 推荐
- Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans 推荐
- Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or us 推荐

Consider renaming one of the beans or enabling overriding by setting
1. 报错信 Description: The bean 'dataSource', defined in BeanDefinition defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class] and overriding is disabled. Action: Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
2. 原因 相同名字不成功 3. 解决办法 main: allow-bean-definition-overriding: true #当遇到同样名字的时候,是否允许覆盖注册捐助 感谢 ♥
👁️ 阅读量:0
© 版权声明:本文《Consider renaming one of the beans or enabling overriding by setting》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686550388a289340.html。