mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 14:55:50 +00:00
Update application-mysql.properties
This commit is contained in:
parent
276efd0fed
commit
2b991e3cd8
1 changed files with 13 additions and 6 deletions
|
@ -1,7 +1,14 @@
|
||||||
# database init, supports mysql too
|
# MySQL Configuration
|
||||||
database=mysql
|
spring.datasource.url=jdbc:mysql://mysql:3306/sampledb
|
||||||
spring.datasource.url=${MYSQL_URL:jdbc:mysql://localhost/petclinic}
|
spring.datasource.username=user_petclinic
|
||||||
spring.datasource.username=${MYSQL_USER:petclinic}
|
spring.datasource.password=123456
|
||||||
spring.datasource.password=${MYSQL_PASS:petclinic}
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||||
# SQL is written to be idempotent so this is safe
|
|
||||||
|
# SQL Initialization
|
||||||
spring.sql.init.mode=always
|
spring.sql.init.mode=always
|
||||||
|
spring.sql.init.schema-locations=classpath:db/mysql/schema.sql
|
||||||
|
spring.sql.init.data-locations=classpath:db/mysql/data.sql
|
||||||
|
|
||||||
|
# JPA and Hibernate Configuration
|
||||||
|
spring.jpa.hibernate.ddl-auto=none
|
||||||
|
spring.jpa.database-platform=org.hibernate.dialect.MySQL5InnoDBDialect
|
||||||
|
|
Loading…
Reference in a new issue