Skip to content

Instantly share code, notes, and snippets.

@pedroxs
Created July 20, 2016 07:44
Show Gist options
  • Save pedroxs/9bbbce902b88877db87fd8e67f31a8a2 to your computer and use it in GitHub Desktop.
Save pedroxs/9bbbce902b88877db87fd8e67f31a8a2 to your computer and use it in GitHub Desktop.
Spring Boot application properties to check JPA annotations agaisnt created DB model.
---
# Test DB profile
spring:
profiles: db
jpa:
database: MYSQL
database-platform: org.hibernate.dialect.MySQL5InnoDBDialect
generate-ddl: true
hibernate:
ddl-auto: create-drop
naming-strategy: org.springframework.boot.orm.jpa.hibernate.SpringNamingStrategy
datasource:
driver-class-name: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/db_name?useUnicode=true&characterEncoding=utf8&useSSL=false
username: user
password: pwd
flyway:
enabled: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment