/
NikolayIvkin
/
tutorials1
Обзор
Документация
Войти
/
NikolayIvkin
/
tutorials1
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
spring-exceptions/src/main/java/com/baeldung/properties/spring/PropertiesWithJavaConfig.java
25 строк
757 B
Krzysztof Woyke
BAEL-20262: Migrate spring-exceptions module to the com.baeldung package
20 дек 2019, 14:32
20 дек 2019, 14:32
98bdc46
Код
Авторство
О чём код?
package com.baeldung.properties.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("com.baeldung.properties.core") @PropertySource("classpath:foo.properties") public class PropertiesWithJavaConfig { public PropertiesWithJavaConfig() { super(); } // beans @Bean public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() { return new PropertySourcesPlaceholderConfigurer(); } }