Spring into Kotlin: How to Make the Magic even more Magical
summary
A Spring Boot 2.0 microservice is built and converted from Java to Kotlin: a Coffee REST API with GET /coffees, GET /coffees/{id}, and search by ?type backed by a Spring Data repository (Mongo used in demo), seeded via a CommandLineRunner. Kotlin specifics shown: Kotlin data class replaces verbose POJO plus equals/hashCode/toString, all-open and Gradle Kotlin plugins for Spring interop, concise null-safety and string templates. The app runs and returns expected JSON responses in the demo.
AI-written summary · about
chapters (10)
- 0:00Introduction to Spring and Kotlin
- 1:46Spring 5 and Kotlin support
- 3:10Kotlin for Spring strategy
- 6:40Speaker introduction and contact methods
- 12:45Kotlin microservice in Spring Boot
- 21:23Java to Kotlin domain class
- 37:51Repository and controller in Kotlin
- 46:50Kotlin features for cleaner code
- 55:32Final refactoring and testing
- 58:24Resources and closing
related talks
52mSpring into Kotlin: How to Make the Magic even more Magical
48mSpringing into Kotlin
58mSpring and Kotlin: A Winning Combination
44mKotlin and Spring Boot, a Match Made in Heaven
43mKotlin for Fun for Spring Fans
47mWhy Spring ❤ Kotlin
02h 14mFrom Spring Boot 1 in Java to Spring Boot 2 in Kotlin
50mBootiful Kotlin
