Mind the Gap: Jumping from Spring Boot 2.x to 3.x
summary
Upgrade path starts by moving the JVM to Java 17 requirement then bumping Spring Boot to 3.x; expect manual fixes for javax→Jakarta package renames and changing Spring Data repository interfaces (iterables to list-returning types). Replace WebSecurityConfigurerAdapter with a SecurityFilterChain bean, run the Spring Boot Properties Migrator to update deprecated config, and note trailing-slash routing changed. Add Micrometer Observations + Brave/Zipkin for traces, emit RFC7807 problem+json errors, and build a native image via Spring AOT + GraalVM (native image with GraalVM). Most demos compile and run after these concrete edits.
AI-written summary · about
chapters (27)
- 0:00Introduction and audience check
- 1:07Why upgrade to Spring Boot 3
- 19:36Upgrading to Java 17 first
- 21:41Spring Boot 3 version upgrade
- 22:22Jakarta EE package migration
- 24:12Spring Data repository changes
- 26:21Simplifying info logger code
- 27:02Spring Security configuration update
- 28:48Handling deprecated annotations
- 30:16Java 17 features in Spring Boot 3
- 34:37Spring Boot properties migrator
- 37:51Removing properties migrator
- 38:12Verifying the upgraded app
- 40:00Actuator and JMX changes
- 41:47Actuator password sanitization
- 44:59Observability with Micrometer
- 47:05Viewing traces in Zipkin
- 48:09Custom observability in code
- 50:05Problem details for error responses
- 51:18Trailing slash handling
- 52:06Problem details in exception handler
- 53:59Spring Boot 3.1 upgrade
- 54:40Native image support overview
- 57:08Generating native image code
- 59:41Native image startup demo
- 1:00:34Spring Framework 6 API client demo
- 1:03:24Resources and closing
related talks
55mFrom Spring Boot 2 to Spring Boot 3 with Java 21 and Jakarta EE
59mFrom Spring Boot 2 to Spring Boot 3 with Java 21 and Jakarta EE
45mBootiful Spring Boot 3
51mSpring Boot 3 / Spring 6: What’s new?
51mMajor Migrations Made Easy
43mMigrating to Spring Boot 3
38mBootiful Spring Boot 3
50mBootiful Spring Boot 3
