From Spring Boot 1 in Java to Spring Boot 2 in Kotlin
summary
Live-coding shows a Java Spring Boot 1 blog app converted to Kotlin on Spring Boot 2 / Spring Framework 5 using Spring Data Kay, with domain types turned into data classes (immutable properties), use of copy() to update instances, top‑level functions and extension methods replacing utility classes, Mustache view DTOs for formatted dates, and migrated tests that run green. Migration covers blocking Spring MVC and reactive WebFlux: reactive repositories returning Flux/Mono, a WebClient client example, server‑sent events and a functional router DSL — all demonstrated working.
AI-written summary · about
chapters (20)
- 0:00Introduction
- 0:35Context
- 1:20Migration from Java to Kotlin
- 1:45Spring Boot 2 in Kotlin
- 2:00Spring Web Flex
- 2:52Blog Post Application
- 3:08Application Overview
- 4:00Migrating to Kotlin
- 5:55Dependencies
- 7:51Kotlin vs Java
- 16:08Kotlin to Spring Boot
- 18:48Type inference
- 23:17If statements
- 25:55Spring Plugin
- 28:47Migration to Kotlin
- 29:41Kotlin Top Level Functions
- 33:30Kotlin Extension Functions
- 39:47Importing Extension Functions
- 45:30Mustache
- 47:30Data class
related talks
45mWhy Spring Loves Kotlin
01h 05mWhy Spring Loves Kotlin
44mKotlin and Spring Boot, a Match Made in Heaven
48mSpringing into Kotlin
52mSpring into Kotlin: How to Make the Magic even more Magical
46mFunctional web applications with Spring and Kotlin
43mSpring Boot with Kotlin, Kofu and Coroutines
59mSpring into Kotlin: How to Make the Magic even more Magical
