package org.baeldung.um.spring; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.PropertySource; import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; @Configuration @ComponentScan({ "org.baeldung.um.model" }) @PropertySource({ "classpath:web-${webTarget:local}.properties" }) public class UmLiveTestConfig { public UmLiveTestConfig() { super(); } // beans @Bean public static PropertySourcesPlaceholderConfigurer properties() { final PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer(); return pspc; } }