Let's start by taking a quick look at the tech involved.
Here are the exact versions I'll be using:
- Java 8 (1.8.0_131)
- Spring Boot 2.1.6
- GraphQL-Java Spring Boot Starter 5.10.0
- Maven 3.5.0
- Mybatis Spring Boot Starter 2.1.0
- Project Lombok 1.18.8
This code is based on the Postgres SQL.
Go ahead and install all the dependencies.
mvn clean install
If you need, change the profiles in resources/application.yml.
java -jar sample-spring-graphql.jar