Before we dive into the Spring Boot training, please ensure your development environment is ready by downloading and setting up the following software on your Windows machine.
|
Note
|
If you want to avoid problems during the training, please DO NOT use paths containing spaces like |
-
Git for Windows: Download
-
Apache Maven (Optional): Download - Most Spring Boot projects use Maven Wrapper (
mvnw), making separate installation not mandatory -
JDK 21:
-
For current recommendations, visit: WhichJDK.com
-
Recommended: Adoptium OpenJDK (Eclipse Temurin): Download
-
Oracle JDK: Download
-
-
IDE (Choose One):
-
API client (Choose One) to test REST calls:
-
Download and install Git for Windows from the provided link.
-
Choose and download JDK 21 from either the Oracle JDK or OpenJDK options and install it.
-
Select and download an IDE of your choice (IntelliJ IDEA, Eclipse, or VSCode) for developing Spring Boot applications.
-
(Optional) Download Apache Maven and extract it to a location without spaces (e.g.
C:\Programs). Add the location to thePATHenvironment variable. -
Download and install Postman for testing your Spring Boot application’s RESTful services.
-
Create a Github account (if you don’t have any yet).
|
Important
|
Maven Installation is Optional: Spring Boot projects typically include Maven Wrapper ( |
Please follow the installation instructions on the download pages for each piece of software.
If you don’t have administrator privileges on your machine, you can use Scoop package manager to install the required software:
-
Open PowerShell (no admin rights required)
-
Run the following command to install Scoop:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser iwr -useb get.scoop.sh | iex
Once Scoop is installed, you can install the required tools:
# Install Git
scoop install git
# Install Maven
scoop install maven
# Install JDK 21 (Eclipse Temurin)
scoop bucket add java
scoop install temurin21-jdk
# Install additional tools (optional)
scoop install postman
# curl is included with Git, or install separately:
scoop install curl|
Note
|
Scoop installs software in your user directory ( |
After installation (whether traditional or via Scoop), verify your environment:
1. Test JDK Installation
Open Command Prompt or PowerShell and run both commands:
java -version
javac -versionYou should see output like:
java version "21.0.2" 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 21.0.2+13-LTS-58)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.2+13-LTS-58, mixed mode, sharing)
javac 21.0.2|
Warning
|
Common JDK Issues:
|
2. Test Maven Installation (Optional)
If you installed Maven separately:
mvn -vExpected output:
Apache Maven 3.9.5 (57804ffe001d7215b5e7bcb531cf83df38f93546)
Maven home: C:\Programs\apache-maven-3.9.5
Java version: 21.0.2, vendor: Eclipse Adoptium
Default locale: en_US, platform encoding: UTF-8
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"|
Note
|
If Maven verification fails: Don’t worry! Spring Boot projects use Maven Wrapper ( |
3. Test IDE Setup
-
Open your chosen IDE
-
Verify it detects Java 21 in project settings
-
For IntelliJ: File → Project Structure → Project → Project SDK should show Java 21
-
For Eclipse: Window → Preferences → Java → Installed JREs should list Java 21