热门

最新

红包

立Flag

投票

同城

我的

发布
ahauedu
一周一志程序员
9 月前
trueahauedu

多数据源问题
***************************
APPLICATION FAILED TO START
***************************

Description:

Field basicProperties in com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceWrapper required a single bean, but 3 were found:
- spring.datasource.datasource2-com.example.microservice.configuration.DataSource2Properties: defined in null
- spring.datasource.datasource1-com.example.microservice.configuration.DataSource1Properties: defined in null
- spring.datasource-org.springframework.boot.autoconfigure.jdbc.DataSourceProperties: defined in null


Action:

Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed

码友杂谈区
CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
下午Pycharm更新了.ignorn插件,然后Pycharm的项目窗口就崩了,还以为.idea文件夹被我误触了,捣腾半天也没好……开个会回来又提示更新.ignorn插件,更新完好了……
立即登录