Learn Spring Boot from Basic to Advanced
Build backend applications and REST APIs, step by step.
- modules
- 13
- topics
- 92
- exercises
- 374
- of practice
- 76 h 25 min
About this course
Learn how to build backend applications and REST APIs using Spring Boot, databases, security, and real-world backend development practices.
What you'll learn
13 modules and 92 topics. Every topic has short lessons, a quiz, hands-on exercises checked in your browser, and interview questions.
1Backend and Spring Boot Introduction
What a backend, server, API, HTTP and REST are, then Spring, Spring Boot and your first application.
- What Is Backend Development?
- APIs, HTTP and REST
- Spring Framework and Spring Boot
- Your First Spring Boot Application
- Project Structure, Maven, Gradle and pom.xml
- Running Your Spring Boot Application
- Module 1 assessment
2Spring Core Fundamentals
Inversion of Control, dependency injection, beans, the container, stereotypes, configuration and profiles.
- Inversion of Control and Dependency Injection
- Beans, the Container and ApplicationContext
- Component Scanning and Stereotype Annotations
- @Autowired and Constructor Injection
- @Configuration, @Bean and Bean Scopes
- application.properties, YAML and Profiles
- Module 2 assessment
3Building REST APIs
HTTP methods, mappings, path variables, request params and bodies, ResponseEntity, status codes and DTOs.
- REST and HTTP from Scratch
- Your First REST Controller (@RestController and @GetMapping)
- Reading the URL: @PathVariable and @RequestParam
- Creating and Changing Data: POST, PUT, PATCH, DELETE and @RequestBody
- ResponseEntity, Status Codes, Headers and Content Types
- JSON Serialization, DTOs and API Response Structure
- Challenge: Build a Complete CRUD API
- Module 3 assessment
4Layered Architecture
Controller, service and repository layers, DTOs and why separating them keeps code clean.
- What Is Layered Architecture?
- Controller, Service and Repository in Code
- Models, Entities, the DTO Layer and Mappers
- Refactor a Fat Controller into Layers
- Project: Build a Structured REST API
- Module 4 assessment
5Database and Spring Data JPA
SQL, JDBC, ORM, Hibernate, JPA entities, repositories, relationships, paging, queries and migrations.
- Relational Databases and Your First SQL
- SQL: Filter, Sort and Paginate
- SQL: Update, Delete, Group and Summarise
- SQL: Foreign Keys, Relationships and JOINs
- MySQL, PostgreSQL, Connections and JDBC
- ORM, JPA, Hibernate and Your First Entity
- Spring Data JPA Repositories and CRUD
- JPA Relationships: One-to-One, One-to-Many, Many-to-Many
- Lazy vs Eager, the N+1 Problem, Paging and Sorting
- Custom Queries: JPQL, Native SQL and @Modifying
- Database Migrations with Flyway and Liquibase
- Module 5 assessment
6Validation and Exception Handling
Bean Validation, custom validators and global error handling with @ControllerAdvice.
- Validating Requests with Bean Validation
- @Validated, Nested Objects and Custom Constraints
- Custom Exceptions and Global Exception Handling
- A Standard Error Response and ProblemDetail
- Module 6 assessment
7Spring Security
Authentication vs authorization, the filter chain, BCrypt, JWT, roles, CORS and CSRF.
- Authentication, Authorization and How Spring Security Works
- Configuring the SecurityFilterChain
- Password Hashing with BCrypt
- Registration and Login with a Database
- JWT: Structure, Access Tokens and Refresh Tokens
- Validating JWTs with a Filter and Securing Endpoints
- Roles, Permissions, CORS and CSRF
- Module 7 assessment
8Advanced Spring Boot
Transactions, logging, Actuator, caching, async and scheduled tasks, events and configuration.
- Transactions and @Transactional
- Transaction Propagation and Isolation Levels
- Logging with SLF4J and Monitoring with Actuator
- Caching with Spring Cache and Redis
- @Async, @Scheduled and Application Events
- Externalized Configuration, Profiles and @ConfigurationProperties
- Module 8 assessment
9Testing Spring Boot Applications
Unit and integration tests with JUnit 5, Mockito, @WebMvcTest, MockMvc and Testcontainers.
- Unit vs Integration Tests and JUnit 5
- Testing Services with Mockito (@Mock, @InjectMocks)
- Testing Controllers with @WebMvcTest and MockMvc
- Testing Repositories with @DataJpaTest and Testcontainers
- Integration Tests with @SpringBootTest, and Test Coverage
- Module 9 assessment
10API Documentation and Developer Tools
OpenAPI/Swagger, Postman, IntelliJ, Maven/Gradle commands, debugging and Git.
- API Documentation with OpenAPI and Swagger UI
- Testing APIs by Hand with Postman
- IntelliJ IDEA, Maven and Gradle Commands
- Logging and Debugging a Spring Boot App
- Git Workflow and Environment Configuration
- Module 10 assessment
11Docker and Deployment
Containers, Dockerfiles, Compose, profiles, deployment and CI/CD basics.
- Docker Basics: Images and Containers
- Writing a Dockerfile for Spring Boot
- Docker Compose: Spring Boot + PostgreSQL
- Production Configuration: Profiles, Environment Variables and Secrets
- Deployment, Cloud Concepts and CI/CD
- Module 11 assessment
12Microservices Fundamentals
Monolith vs microservices, Spring Cloud, gateways, discovery, resilience, tracing and messaging (introductory).
- Monolith vs Microservices
- Service-to-Service Communication with REST
- Spring Cloud: API Gateway, Service Discovery and Central Config
- Circuit Breakers and Resilience Patterns
- Distributed Tracing and Messaging with Kafka or RabbitMQ
- Module 12 assessment
13Real-World Spring Boot Projects
Guided backend projects, from a user API to a full JWT authentication system.
- Project 1: User Management API
- Project 2: Authentication and Authorization API
- Project 3: Employee Management Backend
- Project 4: Product Management API
- Project 5: E-commerce Backend
- Project 6: Order Management System
- Project 7: Blog Management API
- Project 8: Full Authentication System with JWT