mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-20 06:45:50 +00:00
Update application-mysql.properties
This commit is contained in:
parent
f0b2fe1205
commit
5e4fc17b60
1 changed files with 6 additions and 6 deletions
|
@ -1,15 +1,15 @@
|
||||||
# MySQL Configuration
|
# MySQL Database Configuration
|
||||||
spring.datasource.url=jdbc:mysql://mysql:3306/sampledb
|
spring.datasource.url=jdbc:mysql://mysql:3306/sampledb
|
||||||
spring.datasource.username=user_petclinic
|
spring.datasource.username=user_petclinic
|
||||||
spring.datasource.password=123456
|
spring.datasource.password=123456
|
||||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||||
|
|
||||||
# SQL Initialization
|
# Hibernate Configuration
|
||||||
|
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
|
||||||
|
spring.jpa.hibernate.ddl-auto=update
|
||||||
|
|
||||||
|
# SQL Scripts Initialization (Optional)
|
||||||
spring.sql.init.mode=always
|
spring.sql.init.mode=always
|
||||||
spring.sql.init.schema-locations=classpath:db/mysql/schema.sql
|
spring.sql.init.schema-locations=classpath:db/mysql/schema.sql
|
||||||
spring.sql.init.data-locations=classpath:db/mysql/data.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.MySQLDialect
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue