Skip to content

Commit 2f38e9e

Browse files
committed
prevent auto close of db (can happen that the db is closed before everything is saved)
1 parent 8869ebd commit 2f38e9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ spring.h2.console.enabled=true
33
spring.h2.console.path=/h2
44

55
# Datasource
6-
spring.datasource.url=jdbc:h2:file:~/keeptime/db/keeptime-h2-db
6+
spring.datasource.url=jdbc:h2:file:~/keeptime/db/keeptime-h2-db;DB_CLOSE_ON_EXIT=FALSE
77
spring.datasource.username=sa
88
spring.datasource.password=
99
spring.datasource.driver-class-name=org.h2.Driver

0 commit comments

Comments
 (0)