Spring Boot 4
Dependency injection, REST APIs, JPA, security, testing and production readiness with Spring Boot 4 and Spring Framework 7.
23 lessons6 modules6 advanced topics
0/23 completed
01
Core Concepts
6 lessons1beginnerWhat Is Spring Boot?Spring vs Spring Boot, starters, auto-configuration, embedded servers and what's new in Spring Boot 4 and Spring Framework 7.2beginnerIoC & Dependency InjectionThe IoC container, constructor vs field injection, stereotypes, @Bean, qualifiers, @Primary, and injecting collections of beans.3intermediateBean Scopes & LifecycleSingleton, prototype, request and session scopes, the bean lifecycle, init/destroy callbacks and BeanPostProcessors.4intermediateHow Auto-Configuration WorksConditional annotations, the AutoConfiguration.imports file, backing off for user beans, the conditions report and writing your own starter.5beginnerConfiguration, Properties & Profilesapplication.yml, property precedence, type-safe @ConfigurationProperties with records and validation, profiles and secrets.6advancedSpring AOP & ProxiesAspects, advice and pointcuts, how Spring proxies beans, and why self-invocation bypasses @Transactional, @Async and @Cacheable.
02
Web & REST
4 lessons7beginnerBuilding REST APIs@RestController, request mapping, path variables, DTOs with records, ResponseEntity, status codes, pagination and Spring Framework 7 API versioning.8beginnerBean ValidationJakarta Validation constraints on records, nested and collection validation, groups, custom constraints and method-level validation.9intermediateError Handling with ProblemDetail@RestControllerAdvice, RFC 9457 problem details, mapping domain exceptions to status codes, validation errors and logging.10intermediateRestClient & HTTP Service ClientsCalling other services with RestClient, declarative @HttpExchange interfaces registered with @ImportHttpServices, timeouts, error handling and retries.
03
Data Access
3 lessons11beginnerSpring Data JPA RepositoriesEntities, repository interfaces, derived queries, @Query, projections, pagination, auditing and optimistic locking with Hibernate 7.12intermediateRelationships, Fetching & the N+1 ProblemMapping @OneToMany and @ManyToOne correctly, LAZY vs EAGER, the N+1 query problem and how to fix it with fetch joins, entity graphs and batching.13advanced@Transactional Deep DiveHow Spring transactions work, propagation and isolation levels, rollback rules, read-only transactions and the most common pitfalls.
04
Security
2 lessons14intermediateSpring Security FundamentalsThe security filter chain, authentication vs authorization, SecurityFilterChain configuration, password encoding, method security and CSRF/CORS.15advancedJWT & OAuth2 Resource ServersHow JWTs work, securing an API as an OAuth2 resource server, mapping claims to authorities, and what not to build yourself.
05
Testing
2 lessons16intermediateTesting Spring Boot ApplicationsThe testing pyramid, plain unit tests, slice tests (@WebMvcTest, @DataJpaTest), @MockitoBean, MockMvcTester, RestTestClient and @SpringBootTest.17intermediateIntegration Tests with TestcontainersReal PostgreSQL, Kafka and Redis in tests with Testcontainers, @ServiceConnection, local development with Docker Compose, and container reuse.
06
Production & Microservices
6 lessons18intermediateActuator, Metrics & TracingHealth checks and Kubernetes probes, Micrometer metrics, distributed tracing with OpenTelemetry, structured logging and graceful shutdown.19intermediateCaching with Spring Cache & Redis@Cacheable, @CachePut and @CacheEvict, cache keys, Caffeine vs Redis, TTLs, serialization and the cache stampede problem.20intermediate@Async, @Scheduled & Virtual ThreadsRunning work asynchronously and on a schedule in Spring Boot 4 — executors, exception handling, distributed scheduling and virtual threads.21advancedEvent-Driven Messaging with KafkaTopics, partitions and consumer groups, KafkaTemplate and @KafkaListener, delivery guarantees, retries with dead-letter topics, and the transactional outbox.22advancedMicroservice ResilienceTimeouts, retries with back-off, circuit breakers, bulkheads and rate limiting with Spring Framework 7 and Resilience4j.23advancedDocker & GraalVM Native ImagesContainerising Spring Boot with layered jars and buildpacks, JVM tuning in containers, CDS for faster startup, and GraalVM native images.