Spring extensions for Kotlin
summary
Spring Framework ships Kotlin-specific conveniences that are actual extension functions and DSLs rather than prose descriptions, with the generated starter even enabling a Kotlin compiler plugin by default (many users miss this). Examples shown include the runApplication extension, a jdbc operations extension that moves row mappers into trailing lambdas for clearer code, an operator overload for Model, and bean-definition DSLs. Practical rules: don't use data classes with JPA and rely on JSR-305 nullability annotations to make Java APIs safer in Kotlin.
AI-written summary · about
chapters (9)
- 0:00Start
- 3:42Compiler Plugins
- 4:10Generated Sample
- 8:00Extensions
- 10:21Java Api
- 13:29Extensions and Trailing Lambdas
- 26:08Null Safety
- 27:33Nullable Annotations
- 29:04Features of Kotlin
related talks
44mAdvanced Kotlin Techniques for Spring Developers
58mSpring and Kotlin: A Winning Combination
52mSpring into Kotlin: How to Make the Magic even more Magical
43mKotlin for Fun for Spring Fans
50mBootiful Kotlin
33mThe State of Kotlin Support in Spring
45mWhy Spring Loves Kotlin
01h 05mWhy Spring Loves Kotlin
