Sample application of Spring Data JDBC for ScalarDB
This tutorial describes how to create a sample Spring Boot application by using Spring Data JDBC for ScalarDB.
Prerequisites
- Java (OpenJDK 8 or higher)
- Gradle
- Docker, Docker Compose
In addition, you need access to the ScalarDB SQL GitHub repository and Packages in ScalarDB SQL repository. These repositories are available only to users with a commercial license and permission. To get a license and permission, please contact us.
You also need the gpr.user
property for your GitHub username and the gpr.key
property for your personal access token.
You must either add these properties in ~/.gradle/gradle.properties
or specify the properties by using the -P
option when running the ./gradlew
command as follows:
$ ./gradlew run ... -Pgpr.user=<YOUR_GITHUB_USERNAME> -Pgpr.key=<YOUR_PERSONAL_ACCESS_TOKEN>
Or you can also use environment variables, USERNAME
for your GitHub username and TOKEN
for your personal access token.
$ export USERNAME=<YOUR_GITHUB_USERNAME>
$ export TOKEN=<YOUR_PERSONAL_ACCESS_TOKEN>