DBをhsqldbからmysqlに変更

This commit is contained in:
Kodai Asayama 2017-04-20 15:39:23 +09:00
parent ffa967c94b
commit bc66b0b3e2
2 changed files with 5 additions and 2 deletions

View file

@ -4,4 +4,4 @@ spring.datasource.url=jdbc:mysql://localhost/test
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=root spring.datasource.password=root
# Uncomment this the first time the app runs # Uncomment this the first time the app runs
# spring.datasource.initialize=true # spring.datasource.initialize=true

View file

@ -1,7 +1,10 @@
# database init, supports mysql too # database init, supports mysql too
database=hsqldb database=mysql
spring.datasource.schema=classpath*:db/${database}/schema.sql spring.datasource.schema=classpath*:db/${database}/schema.sql
spring.datasource.data=classpath*:db/${database}/data.sql spring.datasource.data=classpath*:db/${database}/data.sql
spring.datasource.url=jdbc:mysql://localhost/
spring.datasource.username=root
spring.datasource.password=petclinic
# Web # Web
spring.thymeleaf.mode=HTML spring.thymeleaf.mode=HTML