StaffCoder
Spring Boot

Spring Boot Practice Exercises

Spring Boot 4.1Java 25
12 modules · 48 challengesSign up
Module 1 of 12 · 4 challenges

Beans & Dependency Injection

Learn how Spring wires your objects together: registering beans, injecting them without new, choosing between them, and configuring them from properties.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Coffee Shop Order Printer

Sign up to unlock
44%36 of 81 solvedeasy
About this challenge

This problem covers connecting the parts of a coffee shop ordering app so each one is handed what it needs, instead of building it itself.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Temperature Unit Provider Switcher

Sign up to unlock
59%10 of 17 solvedeasy
About this challenge

This problem covers registering two temperature converters and telling Spring which one to use by default and which one to hand over when it is asked for by name.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Feature Flag Bean Registry

Sign up to unlock
80%4 of 5 solvedeasy
About this challenge

This problem covers creating a set of feature on/off switches as Spring beans, filling each one from the settings file, and passing them all to the class that reports them.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

Notification Dispatch Selector

STAR
Solving it completes the module
75%3 of 4 solvedeasy
About this challenge

This problem covers sending a message through the channel the user picked, and what to fall back to when the channel isn't recognized.

Read the full problem
Solved in a browser IDE and graded by tests. Sign up to solve

About this path

Build production-style Spring Boot backends through hands-on challenges, one concept at a time.

This path covers the core of a Spring Boot 4 backend: beans and dependency injection, REST controllers, validation and error handling, JPA persistence, and querying. You should be able to write basic Java before you start. No earlier Spring experience is needed. The querying module is about search and filtering, with challenges such as a hotel room availability query.

Frequently asked questions

4

What will I practice in this path?

12 modules: Beans & Dependency Injection, REST Controllers & Endpoints, Validation and Error Handling, JPA Persistence Basics, Querying and Filtering, DTOs, Mapping and Pagination, Security: Authentication & Authorization, File Handling and Storage, Scheduling and Async Work, Events and Messaging, Transactions and Concurrency and Microservices and Resilience.

How many Spring Boot exercises are there, and how hard are they?

48 exercises: 20 easy, 16 medium and 12 hard.

What does this path run on?

Challenges run on Spring Boot 4.1 and Java 25.

Do I need to install anything?

No. Every challenge runs in a browser-based IDE with everything already set up, and your code is graded automatically against a test suite.

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.