Repository contains an example of a GraphQL API on top of Spring Boot. This code is based on another example found originally here, feel free to use it in any way that suits you.
However, if you intend to use GraphQL with Spring, the official integration is found here.