1 2 3 4 5 6 7 8 9 10 |
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/util> <util:properties id="db" location="classpath:properties/#{systemProperties['deploy.type']}/jdbc.properties" /> </beans> |
Tomcat Was start Script 에
-Ddeploy.type=dev
와 같이 설정시
Spring 설정의 #{systemProperties[‘deploy.type’]} 에서 dev로 인식합니다.