스프링
PropertyPlaceHolderConfigure
zumsim
2021. 4. 8. 17:49
728x90
반응형
PropertyPlaceholderConfigurer 클래스는 빈으로 등록하면 외부의 프로퍼티에 저장된 정보를 스프링 설정 파일에서 사용할 수 있다.
<bean id="propertyConfiguerer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath: 프로퍼티 파일 경로</value>
</list>
</property>
</bean>
728x90
반응형