Skip to content
O'Reilly home

Hands-On Spring Boot in 3 Weeks

Published by Pearson

Training, labs and exercises to help you create industrial-strength Spring Boot Applications

December 3, 10 & 17, 2021

1:00 p.m. - 5:00 p.m. Coordinated Universal Time

186 spots available

Sign up for a free trial!

or sign in.

Registration closes December 2, 2021 11:00 p.m. Coordinated Universal Time

What you’ll learn and how you can apply it

  • Creating Spring Boot web applications
  • Managing Spring Boot beans, properties, and application configuration
  • Creating and consuming REST services
  • Integrating with relational databases
  • Implementing message-based solutions by using Kafka
  • Containerizing Spring Boot applications
  • Securing Spring Boot applications by using OAUTH2
  • Testing Spring Boot applications

This live event is for you because…

  • You're a Java developer and you need to learn how to create enterprise applications using Spring Boot
  • You have some existing experience in Spring Framework or Spring Boot and you want to take your knowledge to the next level
  • You're a team lead or architect and you want to see how Spring Boot can help you design and deliver enterprise systems


  • Solid programming experience in Java

  • Familiarity with web applications

  • An awareness of contemporary application architecture is beneficial but not essential

  • You need to have the JDK and IntelliJ IDEA Ultimate Edition installed to run the demos, exercises, and homework assignments for this course. Instructions for downloading and installing these tools is available here

The repo also contains:

  • Instructions for downloading and installing the latest JDK and IntelliJ IDEA Ultimate Edition
  • All the code for the demos and exercises
  • All the lab docs and code for the homework assignments

Recommended Preparation:

Recommended Follow-up:

Watch Reactive Spring Boot, 2nd Edition, by Josh Long (Video_


The timeframes are only estimates and may vary according to how the class is progressing.

Week 1: Core Spring Boot

Introduction to Spring Boot (10 minutes)

  • Overview of Spring Boot
  • The role of Spring Boot in the enterprise
  • Tools for creating Spring Boot applications
  • Creating a Simple Spring Boot Application (30 minutes)
  • Creating a Spring Boot application using IntelliJ
  • Understanding the Maven project structure
  • Exercise: Creating a Spring Boot console application

Creating a Spring Boot Web Application (30 minutes)

  • Overview of creating Spring Boot web applications
  • Understanding JAR files vs. WAR files
  • Adding static content
  • Defining application properties
  • Exercise: Creating a Spring Boot web application
  • Break

Managing Beans and Dependency Injection (40 minutes)

  • Defining component classes
  • Accessing beans in the application context
  • Understanding bean scope and initialization
  • Autowiring beans
  • Exercise: Creating and using beans

Injection Techniques (30 minutes)

  • Using Spring Expression Language (SpEL)
  • Working with command-line arguments
  • Exercise: Using injection techniques

Defining Java Configuration Classes (50 minutes)

  • Defining a configuration class and bean methods
  • Specifying bean scope and initialization
  • Defining beans in the application class
  • Configuring bean dependencies
  • Exercise: Creating beans by using configuration classes
  • Break

Spring Boot Techniques (40 minutes)

  • Managing properties files
  • Defining YAML properties files
  • Using Spring profiles
  • Exercise: Working with properties and profiles

Introduction to Week 1 Assignment, Q&A (10 minutes)

Week 2: Enterprise Spring Boot

Recap Week 1 Assignment (20 minutes)

  • Q&A

Integrating with Data Sources (40 minutes)

  • Understanding Spring Data
  • Getting started with JPA
  • Defining JPA entity classes
  • Exercise: Defining entity beans

Using the JPA API to Query and Modify Entities (40 minutes)

  • Querying entities
  • Modifying entities
  • Managing transactions
  • Exercise: Managing entity beans

Working with Spring Data Repositories (30 minutes)

  • Understanding Spring Data repositories
  • Accessing a relational database by using a Spring Data repository
  • Exercise: Defining and using a Spring Data repository
  • Break

Implementing a Simple REST Service (30 minutes)

  • Getting started with REST services in Spring Boot
  • Defining a simple REST service
  • Allowing cross-origin requests (CORS)
  • Exercise: Defining a simple REST service

Implementing a Full REST Service (40 minutes)

  • Scenario
  • Implementing POST, PUT, and DELETE endpoints
  • Adding support for Swagger
  • Exercise: Defining a full REST service
  • Break

Defining a REST Client (30 minutes)

  • Defining a REST client application
  • How to consume a REST service
  • Exercise: Consuming a REST service

Introduction to Week 2 Assignment, Q&A (10 minutes)

Week 3: Industrial-Strength Spring Boot

Recap Week 2 Assignment (20 minutes)

  • Q&A

Getting Started with Messaging and Kafka (30 minutes)

  • Messaging essentials
  • Overview of Kafka
  • Installing and running Kafka
  • Running Kafka commands
  • Exercise: Getting started with Kafka
  • Break

Using the Kafka APIs (40 minutes)

  • Understanding topics, partitions, and consumers
  • Using Kafka producer and consumer APIs
  • Exercise: Sending and receiving messages to Kafka

Containerizing Spring Boot Applications (40 minutes)

  • Introduction to containerization and Docker
  • Understanding Docker images
  • A closer look at images and containers
  • Containerizing a Spring Boot application
  • Exercise: Containerizing a Spring Boot application
  • Break

Spring Cloud Microservices (30 minutes)

  • Overview of microservices
  • Implementing a microservice architecture using Spring Boot
  • Microservices circuit breakers
  • Exercise: Creating microservices by using Spring Boot

Authentication using OAUTH2 (30 minutes)

  • Introduction to OAUTH2
  • Configuring authentication and authorization
  • Implementing login and logout endpoints
  • Exercise: Securing a Spring Boot application
  • Break

Testing Spring Boot Applications (40 minutes)

  • Writing and running tests on beans
  • Mocking beans
  • Testing REST controllers
  • Testing Spring Data repositories
  • Exercise: Testing a Spring Boot application

Final Project: Create a complete Spring Boot application (10 mins)

Your Instructor

  • Andy Olsen

    Andy is a freelance consultant, instructor, and developer with more than 30 years of experience in IT. Andy began his professional career as a C/C++ developer and morphed into Java, C#, and other languages as the years and decades passed by. Andy is actively involved in a wide range of technologies including full-stack development, cloud native applications, data science, and more. Andy is passionate about technology education and runs training courses around the world across diverse market sectors.

Start your free 10-day trial

Get started

Want to learn more at events like these?

Get full access to O'Reilly online learning for 10 days—free.

  • checkmark50k+ videos, live online training, learning paths, books, and more.
  • checkmarkBuild playlists of content to share with friends and colleagues.
  • checkmarkLearn anywhere with our iOS and Android apps.
Start Free TrialNo credit card required.