Spring Boot

Build production-ready Java services with Spring Boot 4: starters and auto-configuration, dependency injection, REST controllers, validation, problem details, Spring Data JPA, transactions, slice tests and Actuator, verified with a real app built and run.

Start course →

What you'll learn

  • Create and run a Spring Boot application and explain auto-configuration and starters.
  • Use dependency injection with constructor injection and typed configuration properties.
  • Build REST APIs with validation and RFC 9457 problem-details error responses.
  • Persist data with Spring Data JPA repositories and transactional services.
  • Test web and data layers with slice tests and avoid common context-loading pitfalls.
  • Operate applications with Actuator, profiles, packaging and security basics.

Syllabus

Spring Boot Fundamentals

  1. Spring and Spring Boot
  2. Starters and the Project Layout
  3. Auto-Configuration and the Main Class

Dependency Injection and Configuration

  1. Beans and the Application Context
  2. Constructor Injection
  3. Typed Configuration Properties

Building REST APIs

  1. REST Controllers
  2. Request Mapping and Parameters
  3. Validating Input
  4. Problem Details for Errors

Data Access With Spring Data JPA

  1. JPA Entities
  2. Repositories and Derived Queries
  3. Transactions and Open Session in View

Testing Spring Boot Applications

  1. Web Layer Tests With @WebMvcTest
  2. Repository Tests With @DataJpaTest
  3. Pitfall: Beans Declared on the Main Class

Running and Operating Applications

  1. Actuator Health and Metrics
  2. Profiles and External Configuration
  3. Packaging and Running

Security and Observability

  1. Spring Security Basics
  2. Metrics, Logs and Traces
  3. Resilience and Performance

Structure, Upgrades and a Checklist

  1. Project Structure
  2. Upgrading Spring Boot
  3. A Spring Boot Review Checklist