Hi,
I want to use 3 properties files : one for my dev, second for the integration server, and the third for my production server.
How can i set the information in applicationContext.xml that variables like ${application.variable} must be replace by values in application.properties ?
Is it possible to specified it in the applicationContext.xml or must i use code ?
in my code ?Code:PropertyPlaceholderConfigurer cfg = new PropertyPlaceholderConfigurer(); cfg.setLocation(new FileSystemResource("application.properties")); cfg.postProcessBeanFactory(factory);
Thanks,
Fabien.


Reply With Quote