Skip to content

Instantly share code, notes, and snippets.

@danveloper
Created November 7, 2012 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danveloper/4029756 to your computer and use it in GitHub Desktop.
Save danveloper/4029756 to your computer and use it in GitHub Desktop.
External Properties File
datasource.url=jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000
datasource.username=sa
datasource.pooled=true
datasource.driverClassName=org.h2.Driver
datasource.username=sa
datasource.password=
datasource.dbCreate=create-drop
datasource.url=jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000
hibernate.cache.use_second_level_cache=true
hibernate.cache.use_query_cache=false
hibernate.cache.region.factory_class =net.sf.ehcache.hibernate.EhCacheRegionFactory
domainClasses=com.danveloper.gormish.model.Registrant
# Here's an example of specifying both external, filesystem path for properties file, as well as in-classpath properties file
$JAVA_HOME/bin/java -Dconfig.file=/tmp/gormish.properties,classpath:example.config.properties -jar gormish.jar com.danveloper.gormish.Gormish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment