From 625f488a57b678dedaa04e4335778107620ab7b5 Mon Sep 17 00:00:00 2001 From: tenzin metok Date: Thu, 6 Apr 2023 10:07:49 +0530 Subject: [PATCH] initial commit --- pom.xml | 11 ++++++----- src/main/resources/application-mysql.properties | 4 ++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index f467afc3b..7ad639451 100644 --- a/pom.xml +++ b/pom.xml @@ -62,16 +62,17 @@ - - com.h2database - h2 - runtime - com.mysql mysql-connector-j runtime + + com.h2database + h2 + runtime + + org.postgresql postgresql diff --git a/src/main/resources/application-mysql.properties b/src/main/resources/application-mysql.properties index e23dfa605..ac7265d59 100644 --- a/src/main/resources/application-mysql.properties +++ b/src/main/resources/application-mysql.properties @@ -1,7 +1,7 @@ # database init, supports mysql too database=mysql spring.datasource.url=${MYSQL_URL:jdbc:mysql://localhost/petclinic} -spring.datasource.username=${MYSQL_USER:petclinic} -spring.datasource.password=${MYSQL_PASS:petclinic} +spring.datasource.username=${MYSQL_USER:root} +spring.datasource.password=${MYSQL_PASS:Tech@123} # SQL is written to be idempotent so this is safe spring.sql.init.mode=always