21 lines
817 B
Java
21 lines
817 B
Java
package com.baeldung.spring;
|
|
|
|
import org.springframework.context.annotation.Bean;
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.context.annotation.Import;
|
|
import org.springframework.context.annotation.PropertySource;
|
|
import org.springframework.context.support.PropertySourcesPlaceholderConfigurer;
|
|
|
|
@Configuration
|
|
@ComponentScan(basePackages = { "com.baeldung.persistence.service", "com.baeldung.persistence.dao" })
|
|
@Import({ MvcConfig.class, SecSecurityConfig.class })
|
|
@PropertySource("classpath:application.properties")
|
|
public class AppConfig {
|
|
|
|
@Bean
|
|
public static PropertySourcesPlaceholderConfigurer propertyPlaceHolderConfigurer() {
|
|
return new PropertySourcesPlaceholderConfigurer();
|
|
}
|
|
}
|