I would like to inject a specific JdbcTemplatein a Spring Boot project. I tried to follow this example for multiple DataSourceconfiguration : http:
JdbcTemplate
DataSource
Try to move @Qualifier annotation to the parameter on your @Bean methods for JdbcTemplate.
@Qualifier
parameter
@Bean
I guess, when you remove @Primary you end up with error, where more than one appropriate beans are presented
@Primary
more than one appropriate beans are presented