With the present example, the secondDataSource
bean factory method will use firstDataSourceProperties
due to it being annotated with @Primary
.
This commit adds the @Qualifier
needed to ensure secondDataSource
bean factory method uses secondDataSourceProperties
.
Comment From: snicoll
Good catch, thanks Vedran!