Skip to content

Commit 539795c

Browse files
committed
Don't use a unique name for H2 database
In spring-session.sample-boot-jdbc we set spring.datasource.generate-unique-name=false so the documentation's reference to "jdbc:h2:mem:testdb" is correct (see spring-session-docs/modules/ROOT/pages/guides/boot-jdbc.adoc). Spring Boot sets this property to "true" by default, which results in the embedded H2 database getting a random name (instead of "testdb"). Signed-off-by: Johan Kaving <johan@kaving.se>
1 parent b0b2bfa commit 539795c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
spring.security.user.password=password
22
spring.h2.console.enabled=true
3+
spring.datasource.generate-unique-name=false

0 commit comments

Comments
 (0)