Skip to content

Instantly share code, notes, and snippets.

@TopekoX
Last active November 5, 2017 11:26
Show Gist options
  • Save TopekoX/f7beab3128833c0f4fdf30cea767f7b9 to your computer and use it in GitHub Desktop.
Save TopekoX/f7beab3128833c0f4fdf30cea767f7b9 to your computer and use it in GitHub Desktop.
Configuration for Hibernate 5 integration Spring MVC
# DB properties
db.driver=com.mysql.cj.jdbc.Driver # org.postgresql.Driver
db.url=jdbc:mysql://localhost:3306/demospring # jdbc:postgresql://localhost:5432/springdemo
db.username=root
db.password=xxxxxx
# Hibernate properties
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect # org.hibernate.dialect.PostgreSQLDialect
hibernate.show_sql= true
hibernate.format_sql= true
hibernate.hbm2ddl.auto=update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment