Created
November 7, 2012 05:43
-
-
Save danveloper/4029756 to your computer and use it in GitHub Desktop.
External Properties File
This file contains 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
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 |
This file contains 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
# 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