Skip to content
Snippets Groups Projects
Commit e24362b8 authored by Laczkó Csongor Loránd's avatar Laczkó Csongor Loránd
Browse files

fix: Resolve Spring Boot and Hibernate warnings

- Set `spring.jpa.open-in-view` to `false` in `application.properties` to disable database transactions being kept open until the view is rendered.
- Removed `spring.jpa.database-platform` from `application.properties` to allow Hibernate to automatically select the correct dialect based on the JDBC connection metadata.
parent 483946a9
Branches
Tags
No related merge requests found
...@@ -6,7 +6,7 @@ spring.datasource.url=jdbc:h2:mem:test ...@@ -6,7 +6,7 @@ spring.datasource.url=jdbc:h2:mem:test
spring.datasource.driverClassName=org.h2.Driver spring.datasource.driverClassName=org.h2.Driver
spring.datasource.username=sa spring.datasource.username=sa
spring.datasource.password=sa spring.datasource.password=sa
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect spring.jpa.open-in-view=false
spring.h2.console.enabled=true spring.h2.console.enabled=true
spring.h2.console.path=/h2-console spring.h2.console.path=/h2-console
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment