합쭈기 programming

xml에서 properties 설정 사용하기 본문

Java/Spring

xml에서 properties 설정 사용하기

innocent_k 2015. 5. 11. 16:05

<bean id="propertyPlaceholderConfigurer"

        class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">

        <property name="locations">

            <value>classpath:/properties/db.properties</value>   

        </property>

    </bean>


상기 등록 후 


<property name="username" value="${username}" />

'Java > Spring' 카테고리의 다른 글

Excel 다운로드  (0) 2015.05.18
자바 와일드 카드  (0) 2015.05.15
JRebel - 재구동 없이 java & xml 변경 plugin  (0) 2015.05.11
소스상에서 properties 사용하기  (0) 2015.05.07
out of memory 체크  (0) 2015.05.06