About Biju Kunjummen
I was recently stumped by what I thought was going to be a fairly straightforward implementation – Consider the following Spring Java based bean definition file (
@Configuration):
package root;...@Configuration@PropertySource("classpath:root/test.props")public class SampleConfig { @Value("${test.prop}") private String attr; @Bean public SampleService sampleService() { return new SampleService(attr); }} Source : http://www.javacodegeeks.com/2013/07/spring-bean-and-propertyplaceholderconfigurer.html