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