GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — graphql-java-examples/spring-boot-integration at master · gletsch/graphql-java-examples

Expand file tree

/

spring-boot-integration

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

spring-boot-integration

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
gradle/wrapper
gradle/wrapper
 
 
src
src
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

README.md

Outline

GraphQL Java spring boot integration

A very simple example of how to integrate GraphQL Java with Spring boot.

To build the example code in this repository type:

./gradlew build

To run the example code type:

./gradlew bootRun

To access the example application, point your browser at: http://localhost:8080/

Code Explanation

The actual Spring MVC Controller is GraphQLController which accepts GET and POST requests on /graphql.

It uses the GraphQL instance provided by GraphQLProvider.

The actual data is retrieved by the DataFetchers in GraphQLDataFetchers.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.