I have following configuration class:
@Configuration
@PropertySource(name = \"props\", value = \"classpath:/app-config.properties\")
@ComponentScan(\"service
If you use @PropertySource, properties have to be retrieved with:
@Autowired
Environment env;
// ...
String subject = env.getProperty("mail.subject");
If you want to retrieve with @Value("${mail.subject}"), you have to register the prop placeholder by xml.
Reason: https://jira.springsource.org/browse/SPR-8539