Simple guide to help you on your web-dev journey
View the Project on GitHub KeaCluster/bookstoreAPI-spring-guide
This section is fairly straightforward. We’ll take a look at some recommendations and basic configurations.
For simplicity’s sake we’ll work under Java 17
.
As of the time of this writing, the latest JDK
is version JDK 21
.
Since what we need is straightforwardness, we’ll stick to Java 17
.
Make sure to have that JDK
installed alongside your favorite java IDE(Eclipse).
We’ll make use of the spring.initializr
as it allows for a quick setup for our entire project.
This means automatic dependency injection, project,
language, and also Spring Boot
version selection
We’ll work under Gradle
since it’s very dev-friendly when building our project.
Spring Boot
stick with the latest (SNAPSHOT) version available.Feel free to adjust your project’s metadata as you see fit.
We’ll need three main dependencies:
Spring Data JPA
: To have annotations and methods for persistence (SQL syntax).MySQL Driver
: To connect to our database.Spring Web
: This provides most of the REST API annotations and tools we’ll use..zip
file.Gradle
project.
Take some time to familiarize yourself with the project and its structure before moving on to the next section. Explore the files, do some research, and really get to know why everything is there.