@Bean PropertyPlaceholderConfigurer configurer() { PropertyPlaceholderConfigurer configurer = new PropertyPlaceholderConfigurer(); configurer.setFileEncoding("utf-8"); configurer.setSystemPropertiesMode( PropertyPlaceholderConfigurer.SYSTEM_PROPERTIES_MODE_OVERRIDE); configurer.setLocations( new org.springframework.core.io.Resource[] { new ClassPathResource("config_test.properties", SpringFeatureTest.class), new ClassPathResource("config.properties") }); return configurer; }