Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f1a356

Browse files
Add more properties for correct work of h2 database
1 parent 8378fc9 commit 9f1a356

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/main/resources/application.properties

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ spring.h2.console.enabled=true
44
spring.h2.console.path=/h2
55
spring.datasource.url=jdbc:h2:mem:dogdata
66

7+
spring.datasourse.driverClassName=org.h2.Driver
8+
spring.datasource.username=sa
9+
spring.datasource.password=
10+
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
11+
spring.jpa.defer-datasource-initialization=true
12+
713
graphql.servlet.mapping=/graphql
814
graphql.servlet.enabled=true
915
graphql.servlet.corsEnabled=true
1016

1117
graphiql.enabled=true
1218
graphiql.endpoint=/graphql
13-
graphiql.mapping=graphiql
19+
graphiql.mapping=graphiql
20+

0 commit comments

Comments
 (0)