From 30009184e626093f7638f3c01ff48f83f5854ca4 Mon Sep 17 00:00:00 2001 From: Bipinkumar27 Date: Tue, 1 Aug 2023 21:26:00 +0530 Subject: [PATCH 1/2] JAVA-22773: Adding spring-boot-starter-web dependecy for stopping the application closes immediately --- persistence-modules/spring-boot-persistence-h2/pom.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/persistence-modules/spring-boot-persistence-h2/pom.xml b/persistence-modules/spring-boot-persistence-h2/pom.xml index 023e20837b..f643db2260 100644 --- a/persistence-modules/spring-boot-persistence-h2/pom.xml +++ b/persistence-modules/spring-boot-persistence-h2/pom.xml @@ -17,6 +17,10 @@ + + org.springframework.boot + spring-boot-starter-web + org.springframework.boot spring-boot-starter-data-jpa From 5ce87e0104bbbf9c24be89907c3091da0f579fb1 Mon Sep 17 00:00:00 2001 From: Bipinkumar27 Date: Mon, 7 Aug 2023 18:40:50 +0530 Subject: [PATCH 2/2] JAVA-23773: Changes made for adding classPath in properties file --- .../src/main/resources/app-h2.properties | 2 +- .../src/main/resources/application-h2.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/persistence-modules/spring-boot-persistence-h2/src/main/resources/app-h2.properties b/persistence-modules/spring-boot-persistence-h2/src/main/resources/app-h2.properties index bb88e7fef4..13500d1c1f 100644 --- a/persistence-modules/spring-boot-persistence-h2/src/main/resources/app-h2.properties +++ b/persistence-modules/spring-boot-persistence-h2/src/main/resources/app-h2.properties @@ -1 +1 @@ -spring.sql.init.data-locations=user-data.sql +spring.sql.init.data-locations=classpath:user-data.sql diff --git a/persistence-modules/spring-boot-persistence-h2/src/main/resources/application-h2.properties b/persistence-modules/spring-boot-persistence-h2/src/main/resources/application-h2.properties index 6fb436f520..799bb67959 100644 --- a/persistence-modules/spring-boot-persistence-h2/src/main/resources/application-h2.properties +++ b/persistence-modules/spring-boot-persistence-h2/src/main/resources/application-h2.properties @@ -1 +1 @@ -spring.sql.init.data-locations=data-h2.sql +spring.sql.init.data-locations=classpath:data-h2.sql