Skip to content

Commit 490f4cb

Browse files
committed
fix: update spring boot version to 2.6.5 (#299)
* fix: update spring boot version to 2.6.5 * fix: update README * fix: update README
1 parent 6b3d3be commit 490f4cb

File tree

8 files changed

+17
-11
lines changed

8 files changed

+17
-11
lines changed

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -575,12 +575,7 @@ type in your variables as a JSON string with quoted keys.
575575

576576
Run Example in Docker
577577
------
578-
You can quickly start GraphQL JPA Query Example in Docker Swarm online using the community-run Docker playground: `play-with-docker.com (PWD)` by clicking the button below:
579-
580-
[![Try in PWD](https://cdn.rawgit.com/play-with-docker/stacks/cff22438/assets/images/button.png)](http://play-with-docker.com/?stack=https://raw.githubusercontent.com/introproventures/graphql-jpa-query/master/graphql-jpa-query-example/docker-compose.yml&stack_name=graphhql)
581-
582-
After PWD session is ready, select the Docker container instance on the left and then click on the link at the top with exposed port 8080 to run the example. If you get an error message that says: "error routing request", wait for at least 20 seconds after container instance is created to launch the Spring Boot Application.
583-
578+
You can quickly start GraphQL JPA Query Example in Docker.
584579

585580
License
586581
-------

graphql-jpa-query-boot-starter/src/test/resources/application.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ spring:
22
jpa:
33
hibernate.ddl-auto: create-drop
44
show-sql: true
5+
defer-datasource-initialization: true
56
h2:
67
console.enabled: true
78

graphql-jpa-query-build/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<dependency>
3636
<groupId>org.springframework.boot</groupId>
3737
<artifactId>spring-boot-dependencies</artifactId>
38-
<version>2.4.5</version>
38+
<version>2.6.5</version>
3939
<type>pom</type>
4040
<scope>import</scope>
4141
</dependency>

graphql-jpa-query-example-merge/src/main/resources/application.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
spring:
22
h2:
33
console.enabled: true
4-
54
jpa:
65
open-in-view: false
7-
6+
defer-datasource-initialization: true
87
graphql:
98
jpa:
109
query:

graphql-jpa-query-example-relay/src/main/resources/application.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ spring:
44
generate-ddl: true
55
show-sql: true
66
open-in-view: false
7-
properties:
7+
defer-datasource-initialization: true
8+
properties:
89
hibernate.format_sql: true
910
h2:
1011
console.enabled: true

graphql-jpa-query-example-simple/src/main/resources/application.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ spring:
33
hibernate.ddl-auto: create-drop
44
show-sql: true
55
open-in-view: false
6+
defer-datasource-initialization: true
67
h2:
78
console.enabled: true
89
datasource:

graphql-jpa-query-schema/pom.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,12 @@
6464
<artifactId>javax.interceptor-api</artifactId>
6565
</dependency>
6666

67+
<dependency>
68+
<groupId>com.h2database</groupId>
69+
<artifactId>h2</artifactId>
70+
<scope>test</scope>
71+
</dependency>
72+
6773
<dependency>
6874
<groupId>org.springframework.boot</groupId>
6975
<artifactId>spring-boot-starter-data-jpa</artifactId>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
logging.level.com.introproventures.graphql.jpa.query.schema=DEBUG
1+
logging.level.com.introproventures.graphql.jpa.query.schema=DEBUG
2+
3+
# This modifies the default Spring Boot behavior and populates the data after the schema is generated by Hibernate
4+
spring.jpa.defer-datasource-initialization=true

0 commit comments

Comments
 (0)