From 8070cfd4e9e3a71a8fddd373439765cacd776b1a Mon Sep 17 00:00:00 2001 From: chanthasuon Date: Thu, 30 Apr 2020 17:25:46 +0700 Subject: [PATCH] "code line 44" --- pom.xml | 11 +++++++++-- src/main/resources/application.properties | 9 ++++----- src/main/resources/templates/admin/admin.html | 2 +- 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/pom.xml b/pom.xml index d801878..9349d6e 100644 --- a/pom.xml +++ b/pom.xml @@ -56,8 +56,15 @@ postgresql runtime - - + + + mysql + mysql-connector-java + 8.0.20 + + + + org.springframework.boot spring-boot-starter-data-jpa diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 863e3f6..028f914 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,8 +1,7 @@ spring.thymeleaf.cache=false spring.jpa.hibernate.ddl-auto=update -spring.datasource.url=jdbc:postgresql://localhost:5432/dbfoof -spring.datasource.username=postgres -spring.datasource.password=postgres +spring.datasource.url=jdbc:mysql://localhost:3309/dbfood?createDatabaseIfNotExist=true&allowPublicKeyRetrieval=true&useSSL=false +spring.datasource.username=root +spring.datasource.password=root spring.jpa.open-in-view=true -server.port=8010 -server.servlet.session.tracking-modes=cookie +server.port=8181 diff --git a/src/main/resources/templates/admin/admin.html b/src/main/resources/templates/admin/admin.html index 796e6e1..efab9af 100644 --- a/src/main/resources/templates/admin/admin.html +++ b/src/main/resources/templates/admin/admin.html @@ -38,7 +38,7 @@