From e56a35bf12980cd40fb5548f4c879f9cfb38b770 Mon Sep 17 00:00:00 2001 From: andreas-ost <76487171+andreas-ost@users.noreply.github.com> Date: Tue, 22 Dec 2020 16:43:09 +0100 Subject: [PATCH] Update application.properties --- src/main/resources/application.properties | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 4d4784e36..db7600bad 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -3,6 +3,16 @@ database=h2 spring.datasource.schema=classpath*:db/${database}/schema.sql spring.datasource.data=classpath*:db/${database}/data.sql +# Access to H2 +spring.h2.console.enabled=true +spring.datasource.url=jdbc:h2:mem:petclinic +spring.datasource.driverClassName=org.h2.Driver +spring.jpa.database-platform=org.hibernate.dialect.H2Dialect + +spring.h2.console.path=/h2-console +spring.h2.console.settings.trace=false +spring.h2.console.settings.web-allow-others=true + # Web spring.thymeleaf.mode=HTML