Skip to content

Instantly share code, notes, and snippets.

@bvader
Created September 27, 2018 04:06
Show Gist options
  • Save bvader/8327fcea691e1016e9fdd4403478886d to your computer and use it in GitHub Desktop.
Save bvader/8327fcea691e1016e9fdd4403478886d to your computer and use it in GitHub Desktop.
spring-petclinic-rest:src/main/resources/application-mysql.properties
# uncomment for init database (first start)
spring.datasource.initialize=true
spring.datasource.schema=classpath*:db/mysql/initDB.sql
spring.datasource.data=classpath*:db/mysql/populateDB.sql
# MySQL config start
#----------------------------------------------------------------
spring.datasource.url = jdbc:mysql://localhost:3306/petclinic?useUnicode=true
spring.datasource.username=root
spring.datasource.password=petclinic
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.jpa.database=MYSQL
spring.jpa.database-platform=org.hibernate.dialect.MySQLDialect
spring.jpa.hibernate.ddl-auto=none
#----------------------------------------------------------------
# MySQL config end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment