Idiomatic Kotlin applications with Spring Boot 4
summary
Gradle Kotlin DSL with Java 25 is the default build path, and Spring Boot 4 raises the Kotlin baseline (4.0 → Kotlin 2.2, 4.1 → 2.3, 4.2 → 2.4) while adding JSpecify-based null-safety checked by NullAway. Kotlin serialization only activates via spring-boot-kotlin-serialization-json and coexists with Jackson for non-@Serializable classes. WebMVC plus virtual threads is the recommended runtime for most services, JPA remains awkward with idiomatic Kotlin data classes, and Spring Boot 4 AOT cache delivers ~2x startup now and aims for ~5x with upcoming Java releases.
AI-written summary · about
chapters (17)
- 0:00Introduction
- 1:30Idiomatic Kotlin for maintainable code
- 3:36Kotlin build systems in Spring Boot 4
- 6:26Spring Boot 4 and Kotlin 2.2 upgrade
- 7:50Jakarta validation with Kotlin data classes
- 10:00Null safety with J Specify
- 13:32WebMVC vs WebFlux with Kotlin
- 15:41Annotation vs programmatic config
- 17:49Bean registrar DSL
- 20:16Logging best practices
- 22:44Testing Kotlin with Spring Boot
- 24:49Kotlin serialization in Spring Boot 4
- 27:37Kotlin persistence with JPA
- 30:27Coroutines observability
- 32:12Spring AI Kotlin support
- 35:42Faster startup with AOT cache
- 39:10Q&A
related talks
42mNext level Kotlin support in Spring Boot 4
27mState of Kotlin Support in Spring
45mWhy Spring Loves Kotlin
33mThe State of Kotlin Support in Spring
44mAdvanced Kotlin Techniques for Spring Developers
03h 13mKotlin 1.4 Online Event, Day 4: server-side Kotlin
36mUpgrade Time: Choose Java 11+ or the “Other” One…Kotlin
01h 05mWhy Spring Loves Kotlin
