Skip to content

Instantly share code, notes, and snippets.

@memory-lovers
Created June 12, 2017 15:14
Show Gist options
  • Save memory-lovers/2dc35d8b09b004f24199dc21e8b0cf85 to your computer and use it in GitHub Desktop.
Save memory-lovers/2dc35d8b09b004f24199dc21e8b0cf85 to your computer and use it in GitHub Desktop.
# ===================================================================
# APPLICATION PROPERTIES
# ===================================================================
# ----------------------------------------
# DATA PROPERTIES
# ----------------------------------------
# DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
spring.datasource.driverClassName=org.h2.Driver
spring.datasource.url=jdbc:h2:file:./database/test;MODE=PostgreSQL;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
spring.datasource.username=user
spring.datasource.password=user
# JPA (JpaBaseConfiguration, HibernateJpaAutoConfiguration)
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=true
# H2 Web Console (H2ConsoleProperties)
spring.h2.console.enabled=true # Enable the console.
spring.h2.console.path=/h2-console # Path at which the console will be available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment