How to read Qualifier from property file in spring boot?
I have a Qualifier where I read from public class TestController{ @Autowired @Qualifier("jdbc") private JdbcTemplate jtm; //..... } The qualifier "jdbc" is the bean defined as @Bean(name = "jdbc") @Autowired public JdbcTemplate masterJdbcTemplate(@Qualifier("prod") DataSource prod) { return new JdbcTemplate(prod); } This is the which returns the datasource for that qualifier and works fine. Now I want to make the Qualifier name to be read from the application.properties. So I changed my code to public class TestController{ @Autowired @Qualifier("${database.connector.name}") private