package thymeleafexamples.layouts.config; 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; import thymeleafexamples.layouts.Application; @Configuration @PropertySource("classpath:persistence.properties") @PropertySource("classpath:application.properties") @ComponentScan(basePackageClasses = Application.class) class ApplicationConfig { @Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); } }