Skip to content

Instantly share code, notes, and snippets.

@ruseel
Created November 26, 2013 02:25
Show Gist options
  • Save ruseel/7652571 to your computer and use it in GitHub Desktop.
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를 주면 개발서버설정이 적용된다.
<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