해당 xml 파일에서 local.properties 파일에 있는 db.url 을 사용하고자 하면, 아래와같이 작성 후에
<beans:bean
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<beans:property name="Location"
value="/WEB-INF/spring/config/properties/local.properties" />
<beans:property name="fileEncoding" value="UTF-8"/>
</beans:bean>
================================================================
${db.url} 이렇게 사용하면 된다.
'Spring' 카테고리의 다른 글
JAP란? (0) | 2020.02.03 |
---|---|
ModelAndView (0) | 2020.01.30 |
getParameter / @RequesetParam / @ModelAttribute (0) | 2020.01.29 |
tiles3 셋팅 방법 미완성 (0) | 2020.01.22 |
Servlet Controller 차이 (0) | 2020.01.21 |