State of Kotlin Support in Spring
summary
Spring Boot 2.4 adds kotlinx.serialization JSON support and broad coroutine APIs for WebFlux and MVC where suspend/Flow map to Reactor Mono/Flux, plus multiplatform RSocket via rsocket-kotlin. Native builds use paketo buildpacks and the spring-graalvm-native plugin to produce tiny images (~20 MB OS + ~50 MB app) with near-instant startup (PetClinic ~100 ms). Spring Fu’s KoFu DSL provides an explicit, programmatic Kotlin configuration alternative to annotation/reflection-based setups, still incubating while Spring Boot 3 plans first-class native support.
AI-written summary · about
chapters (26)
- 0:00Intro
- 0:39First class support for Java and Kotlin
- 1:03Getting started
- 1:59Minimal Spring Boot Kotlin application
- 2:22Gradle Kotlin DSL
- 3:27Follow the tutorial on
- 4:06Spring Framework documentation in Kotlin
- 5:07Choose your web server stack
- 6:46Do you prefer annotations?
- 8:59First class Coroutines support
- 9:30Suspending functions
- 10:44Multiplatform
- 11:41kotlinx.serialization support New in Spring Boot 2.4
- 15:26RSocket support in Spring messaging
- 16:31Other key points
- 16:51@Configuration Properties data classes
- 17:04Spring Security Kotlin DSL New in Spring Security 5.4
- 17:25Spring Boot native applications With Graal VM native
- 18:11JVM and native executables offer different trade-offs
- 18:43Instant startup and cheaper hosting
- 19:52Spring support for native executables
- 23:42What's next? Programmatic configuration for Spring Boot using a Kotlin DSL
- 23:58Spring Fu is an incubator for a functional flavor of Spring Boot
- 24:32What is the same than Spring Boot?
- 24:49What changes?
- 25:23Spring Boot configured with Kofu
related talks
33mThe State of Kotlin Support in Spring
42mThe State of Kotlin Support in Spring
01h 05mWhy Spring Loves Kotlin
44mKotlin and Spring Boot, a Match Made in Heaven
47mSpring Boot with Kotlin, Kofu and Coroutines
43mSpring Boot with Kotlin, Kofu and Coroutines
45mWhy Spring Loves Kotlin
47mWhy Spring ❤ Kotlin
