I want to set dynamic property source value using @PropertySource annotation. Can any one tell me how to achieve this? For the below I have pass properties file name dynamically.
@Configuration
@PropertySource("classpath:message.properties")
public abstract class AbstractCommonAMQPConfiguration {
@Value("${cust.name}")
private String custName;
@Value("${cust.id}")
private String custId;
}