From e145cb9030bdedb3cae4fbd865ff892213d9e0f8 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Wed, 14 Oct 2020 04:14:36 +0300 Subject: [PATCH] Explicitly use MySQL mode for H2 database Signed-off-by: Pekka Helenius --- bookstore/src/main/resources/application-dev.properties | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bookstore/src/main/resources/application-dev.properties b/bookstore/src/main/resources/application-dev.properties index 08968ef..0dbffec 100644 --- a/bookstore/src/main/resources/application-dev.properties +++ b/bookstore/src/main/resources/application-dev.properties @@ -7,7 +7,10 @@ # Temporary, volatile database spring.h2.console.enabled = true spring.h2.console.path = /h2-console -spring.datasource.url = jdbc:h2:mem:testdb + +# Ref: http://h2database.com/html/features.html +# +spring.datasource.url = jdbc:h2:mem:testdb;MODE=MySQL spring.jpa.show-sql = true