Skip to content

Commit b82b741

Browse files
add readme
1 parent 0dba5dc commit b82b741

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

spring-boot-integration/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# GraphQL Java spring boot integration
2+
3+
A very simple example of how to integrate GraphQL Java with Spring boot.
4+
5+
To build the example code in this repository type:
6+
7+
```
8+
./gradlew build
9+
```
10+
11+
To run the example code type:
12+
13+
```
14+
./gradlew bootRun
15+
```
16+
17+
To access the example application, point your browser at:
18+
http://localhost:8080/
19+
20+
# Code Explanation
21+
22+
The actual Spring MVC Controller is `GraphQLController` which accepts GET and POST requests on `/graphql`.
23+
24+
It uses the `GraphQL` instance provided by `GraphQLProvider`.
25+
26+
The actual data is retrieved by the DataFetchers in `GraphQLDataFetchers`.
27+

0 commit comments

Comments
 (0)