mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 20:35:49 +00:00
Update application-mysql.properties
Add some environment variables with defaults for the MySQL credentials. Closes #506
This commit is contained in:
parent
0390e85c25
commit
4953f87917
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# database init, supports mysql too
|
# database init, supports mysql too
|
||||||
database=mysql
|
database=mysql
|
||||||
spring.datasource.url=jdbc:mysql://localhost/petclinic
|
spring.datasource.url=${MYSQL_URL:jdbc:mysql://localhost/petclinic}
|
||||||
spring.datasource.username=petclinic
|
spring.datasource.username=${MYSQL_USER:petclinic}
|
||||||
spring.datasource.password=petclinic
|
spring.datasource.password=${MYSQL_PASS:petclinic}
|
||||||
# SQL is written to be idempotent so this is safe
|
# SQL is written to be idempotent so this is safe
|
||||||
spring.datasource.initialization-mode=always
|
spring.datasource.initialization-mode=always
|
||||||
|
|
Loading…
Reference in a new issue