Spring and Kotlin: A Winning Combination
summary
Shows concrete Spring + Kotlin code: project generated from start.spring.io, uses the kotlin-spring plugin to auto-open classes, the Jackson Kotlin module for JSON, and a reified extension runApplication. Demonstrates REST controllers, a MockMvc DSL and WebTestClient, Spring Data JPA with H2 and JDBC template row mappers, and coroutine-based web client vs WebFlux. Includes runnable GitHub projects, tests that start a server on a random port and pass, and practical examples of where Kotlin actually simplifies Spring code.
AI-written summary · about
chapters (9)
- 0:00Introduction to Kotlin Spring
- 2:49Kotlin Spring plugin and final classes
- 9:55Demo application setup
- 14:11REST controller with Kotlin
- 21:38Testing with MockMVC and Spring Boot
- 26:16REST client with Kotlin coroutines
- 32:39Database persistence with JPA
- 42:12Summary of Kotlin Spring features
- 45:25Legacy app migration and Q&A
related talks
52mSpring into Kotlin: How to Make the Magic even more Magical
43mKotlin for Fun for Spring Fans
47mWhy Spring ❤ Kotlin
44mAdvanced Kotlin Techniques for Spring Developers
44mKotlin and Spring Boot, a Match Made in Heaven
50mBootiful Kotlin
59mSpring into Kotlin: How to Make the Magic even more Magical
01h 05mWhy Spring Loves Kotlin
