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 @@