Spring Boot From Basic to Advanced - online



Kursarrangør: Bouvet
Sted: Nettkurs / Nettstudie
Hele landet
Type:Nettkurs og nettstudie
Studie / yrkesutdanning
Undervisningstid: Ta kontakt for informasjon
Varighet: 3 days
Pris: 18.200

We provide online course about Spring Boot From Basic to Advanced. Get the most out of your Spring Boot application. The training is aimed to level up your team´s Spring skills, covering the Spring Framework and Spring Boot fundamentals, REST APIs, data access with Spring Data JPA.

Content:
Security, reactive programming, Spring Cloud, Spring Modulith, the 12-Factor App methodology, and the migration to Spring Boot 4 and Spring Framework 7. Every code snippet on every slide comes verbatim from a compiled, integration-tested project that you get access to, so nothing you see in this training is hypothetical: you can run all the demos yourself, during and after the training.

Want to get the most out of Spring Boot:
1) Spring Boot Fundamentals:
• Adding a starter and an annotation is fairly easy. But do you know how auto-configuration, the IoC container, and “convention over configuration” actually work behind the scenes, and what to do when the convention no longer fits your application.

2) Production Readiness:
• A REST API that runs on your laptop is only the beginning. Do you know how to make it production-grade: secured, observable, stateless, horizontally scalable, and aligned with the 12-Factor App methodology.

3) Spring Boot 4 & Spring Framework 7:
• The new platform generation is here: virtual threads by default, modularized starters, Spring Security 7, Jackson 3, and Hibernate 7. Do you know what silently breaks when you bump the version, and how to migrate safely.

Agenda:
Day 1 - Foundations and Core Spring:
Spring and Spring Boot Ecosystem Overview:
• What is the Spring Framework, what problem it solves, and why Spring Boot exists
• Spring Boot vs. Spring Framework - auto-configuration philosophy, starters, embedded server model
• Tour of the Spring portfolio (Web, Data, Security, Cloud, Batch, Integration)
• Java vs. Kotlin in a Spring context

Configuration and Profiles:
• Application.properties vs. YAML, property binding, (at)Value vs. (at)ConfigurationProperties
• Profiles: activation strategies and multi-environment setup
• Code lab: dev and prod profiles with externalized database configuration

Spring Data JPA: Database Access:
• Entities, relationships, and why the SEQUENCE identifier strategy matters for batching
• Repositories, derived query methods, (at)Query, projections, pagination and sorting
• Code lab: wire JPA persistence into the REST API, backed by a real PostgreSQL database
• Common pitfalls: N+1 queries, LazyInitializationException, EAGER vs. LAZY, open-in-view

Dependency Injection and Autoconfiguration:
• The IoC container: (at)Component, (at)Service, (at)Repository, (at)Bean, constructor injection, bean lifecycle
• Code lab: build a Spring Boot app from scratch and inspect the application context
• Auto-configuration deep dive: (at)ConditionalOnClass, (at)ConditionalOnMissingBean, the auto-configuration report

Spring Web and REST APIs:
• (at)RestController, request mappings, content negotiation, ResponseEntity, HTTP status codes
• Bean Validation and global error handling with (at)ControllerAdvice and ProblemDetail (RFC 7807)
• Code lab: a complete CRUD REST API with validation and error handling

Spring Security: Locking Down the API:
• How the security filter chain works: authentication and authorization step by step
• SecurityFilterChain configuration, role-based access, method security with (at)PreAuthorize
• Passwordless sign-in with Passkeys (WebAuthn) in Spring Security 7
• Code lab: protect the API endpoints by role and test the setup

Day 2 - Advanced Patterns and Production Readiness:
Spring WebFlux: Reactive Programming:
• The non-blocking I/O model, Mono and Flux, reactive operators, WebClient
• When to use WebFlux vs. servlet with virtual threads (when to choose one or the other)
• Code demo: the same endpoint, servlet-based and reactive, side by side

Spring Modulith and Modular Design:
• Module boundaries, (at)ApplicationModule, event-driven communication between modules
• Architecture validation tests and generated documentation
• Modular monolith vs. microservices - when to split and how to migrate

Actuator, Health Checks, and the 12-Factor App:
• Actuator endpoints, custom health indicators, securing Actuator in production
• Introduction to the 12-Factor App methodology and how to build resilient software architectures

12-Factor: Logging and Observability:
• Structured JSON logging, MDC, correlation IDs, logging to stdout
• Metrics with Micrometer: custom metrics, dimensional tagging, Prometheus export
• Distributed tracing with OpenTelemetry, viewing traces end to end

Spring Cloud: Microservices Patterns:
• Config Server - centralized externalized configuration
• Service Discovery - registration, lookup, client-side load balancing
• Spring Cloud Gateway - routing, filters, rate limiting
• Circuit Breaker with Resilience4j - fallbacks and bulkheads

Spring Integration:
• Enterprise Integration Patterns and Spring Integration
• Channels, endpoints, message flows, and the integration DSL
• Practical example: file polling - transformation - database write

12-Factor: Dependency and Configuration Management:
• Factor 2 - BOM management, reproducible builds, centralized version control
• Factor 3 - externalized configuration, environment variables, Config Server, secrets handling

12-Factor: Stateless Services and Caching:
• Why statelessness matters for horizontal scaling; Spring Session with Redis
• Caching strategies: (at)Cacheable, Caffeine vs. Redis, invalidation patterns
• Database state management: HikariCP tuning and connection pool monitoring

Day 3 - Why This Release Is Different:
• The scope of the upgrade: Spring Framework 7, Spring Security 7, Spring Data 2025.1, Hibernate 7, Jackson 3, Jakarta EE 11
• How this compares to the Spring Boot 2 - 3 migration

HTTP Service Clients and API Versioning:
• (at)HttpExchange typed clients replacing boilerplate WebClient and RestTemplate code
• First-class API versioning: strategies and configuration

Platform and Ecosystem Upgrades:
• Jakarta EE 11 alignment and JSpecify null-safety annotations
• The Jackson 3 transition and its serialization gotchas
• Hibernate 7: SQL generation and fetch behavior changes
• GraalVM Native Image and Startup Improvements

Breaking Changes and Risk Mitigation:
• Modularized starters and silent startup failures
• Spring Security 7 defaults and the silent 403 problem
• Removed APIs, testing changes, configuration property renames

Virtual Threads as the Default Execution Model:
• Platform threads vs. virtual threads, and what changed from opt-in to default
• The synchronized pinning problem and how to fix it
• Connection pool implications: HikariCP sizing under virtual threads
• Does reactive still makes sense

Observability: The OpenTelemetry Starter:
• One dependency that auto-configures metrics and traces over OTLP
• The Observation API: (at)Observed and ObservationRegistry
• Live demo: traces and metrics flowing to a local collector

GraalVM Native Image and Startup Improvements:
• AOT processing improvements in Spring Boot 4
• Project Leyden and “static images” vs. GraalVM native images
• Live demo: native build and startup time comparison

Hands-On Migration Workshop:
• Migrate a realistic Spring Boot 3 application to 4.0, step by step
• Properties migrator - version bump - fix Security - fix Jackson - green test suite
• OpenRewrite: what it automates and what it doesn't
• The migration checklist that works, and the version support timeline

Course instructor: Vlad Mihalcea

Vlad Mihalcea is a Java Champion, one of the top Hibernate ORM project committers, passionate about concurrency challenges, high-performance enterprise solutions, and online transaction processing. Vlad wrote the High-Performance Java Persistence book which became one of the best-selling Java books on Amazon. Vlad regularly speaks at Java conferences all over the world.

He is passionate about enterprise systems, data access frameworks, and distributed systems. He wrote hundreds of articles about Hibernate on his blog , and he has a gold badge for the Hibernate, Java, and JPA tags on StackOverflow. He believes in Open Source Software, and he thinks every developer should get involved, one way or the other.

Target audience:
Anyone who wants online course about Spring Boot From Basic to Advanced