Springing into Kotlin
summary
A tiny Spring Boot web app (Gradle, Spring Boot 2.0 RC1) gets converted to Kotlin: domain class becomes a data class reduces boilerplate (no constructors/getters/setters/equals/hashCode/toString), repository and controller are migrated with the IntelliJ Java→Kotlin converter, and a CommandLineRunner seeds data. Endpoints /coffees, /coffees/{id} and search by type run in the JVM and return expected results; the migration stays interoperable with existing Java and noticeably shortens code.
AI-written summary · about
chapters (24)
- 0:00Intro
- 4:37Contact Mark
- 5:20Who am I
- 7:50Goals
- 10:37Spring Initializer
- 11:49Gradle
- 13:30Mongo
- 14:42Emacs
- 15:14Java
- 16:58Building the application
- 19:53Coffee Repository
- 21:58Spring Data Methods
- 23:59Creating a Bean
- 27:46Running the application
- 29:31Getting started with Kotlin
- 31:42Default values
- 32:53Mutable values
- 34:47Overrides
- 36:18Toplevel functions
- 38:10Converting Java to Kotlin
- 39:34Private Visibility Modifier
- 43:14Refactoring
- 44:23List of Lists
- 46:27Testing
related talks
59mSpring into Kotlin: How to Make the Magic even more Magical
52mSpring into Kotlin: How to Make the Magic even more Magical
02h 14mFrom Spring Boot 1 in Java to Spring Boot 2 in Kotlin
43mKotlin for Fun for Spring Fans
44mKotlin and Spring Boot, a Match Made in Heaven
58mSpring and Kotlin: A Winning Combination
45mWhy Spring Loves Kotlin
47mWhy Spring ❤ Kotlin
