Episode 1, start.spring.io
In order to create a real life app, we need to setup lots of tools. When you start learning all of this setup is a lot to handle. So you’ll use a tool that helps with it, called: start.spring.io
Here’s what you’ll do:
- Navigate to start.spring.io.
- Take 20 min to study what options you have, just.. click on things, read words, have good time.
- We need to set up the must have parts:
- Project Maven Project.
- Language Java.
- Spring Boot 2.3.1.
- or another recent version that has only numbers and no words like M1, SNAPSHOT.
- Project Metadata:
- as you see is a domain name with words ordered backwards.
- this is a technical name.
- this is a human friendly name.
A web service capable of managing files inside a folder and exposes a REST API.
- Package name
- here we start to organize classes in folders called “packages” and this is the root one.
- not related to package name, this is the archive format for your application.
- this is the version of the Java Development Kit JDK, not the language.
- we are going only for Long Term Support LTS ones versions.
- here’s the list of LTSes https://adoptopenjdk.net/.
- Now let’s move to Dependencies.
- Click on “Add Dependencies” and search for:
Spring Boot Actuator,
Spring Configuration Processor.
- Click on Generate (or press
Ctrl + Enter).
- You’ll be proposed to download an archive that’ll contain your the structure of your project.
- Then you’ll obey my friend, this archive is a good thing for your mental health.
- Extract the contents of the archive