多数据源问题
***************************
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