Created
November 26, 2013 02:25
-
-
Save ruseel/7652571 to your computer and use it in GitHub Desktop.
Rails스타일 Spring DB설정. System Property "mode"에 따라 db설정을 읽는다. database.properties에는 실서버설정을 넣고 database-dev.properties에는 개발서버설정을 넣는다.
실행할 때 -Dmode=dev를 주면 개발서버설정이 적용된다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <context:property-placeholder | |
| ignore-resource-not-found="true" | |
| location="classpath:database.properties,classpath:database-${mode}.properties" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment