Spring Boot Tutorial 0/110 lessons ~6 min read Lesson 4

    Spring Boot Installation

    Before writing your first endpoint you need three things: a JDK, a build tool (Maven or Gradle ships with starters), and an IDE.

    Course progress0%
    Focus
    3 guided sections
    Practice signal
    Examples included
    Career prep
    Foundation builder

    Introduction

    Before writing your first endpoint you need three things: a JDK, a build tool (Maven or Gradle ships with starters), and an IDE. Skip system-wide JDKs — use a version manager like SDKMAN! to switch between projects.

    Syntax reference

    One-time setup (macOS / Linux):

    bash
    # 1. Install SDKMAN!
    curl -s "https://get.sdkman.io" | bash
    source "$HOME/.sdkman/bin/sdkman-init.sh"
    # 2. Install Java 21 LTS
    sdk install java 21.0.4-tem
    # 3. (Optional) Install Maven
    sdk install maven
    # 4. Verify
    java -version # openjdk 21
    mvn -version # Apache Maven 3.9+

    Best practices

    • Use Eclipse Temurin JDK builds — free, vendor-neutral, audited.
    • IDE: IntelliJ IDEA Ultimate (free for students) or Community + Spring plugin.
    • Add .sdkmanrc per project so teammates use the same JDK.
    Ready to mark this lesson complete?Track your journey across the entire course.