Advanced Kotlin Techniques for Spring Developers
summary
Shows concrete Kotlin techniques for Spring: generate projects with start.spring.io, enable -Xjsr305=strict to get runtime null checks, and fix Jackson + primitive defaults by making primitives nullable or using Jackson settings. Recommends kotlin-jpa plugin to add bytecode no-arg constructors but stresses hand-implemented equals/hashCode for JPA entities. Demonstrates Kotlin JDBC template extensions that move varargs and allow inline row mappers, and shows a beans DSL and security DSL for compact configuration plus an ApplicationContextInitializer workaround found during testing. Recommends jOOQ for SQL.
AI-written summary Β· about
chapters (22)
- 0:00Intro
- 2:28My application
- 3:56Minimum dependencies
- 4:43Main class
- 5:51First controller
- 7:48Why? How?
- 11:02Updating class
- 12:17Quick summary
- 13:00Nanoentity
- 13:47Improving
- 14:42But there is no no-arg constructor!
- 16:05Is this enough?
- 18:44Let's inline mapper
- 21:22Extension functions
- 23:51Custom bean
- 25:24Arbitrary logic
- 26:30OK How do I use it?
- 27:51Let's test it
- 29:11Requires some glue to work
- 34:00So, what did I learn?
- 36:46Thank you! Questions?
- 39:33Spring Security
related talks
58mSpring and Kotlin: A Winning Combination
31mSpring extensions for Kotlin
43mKotlin for Fun for Spring Fans
52mSpring into Kotlin: How to Make the Magic even more Magical
50mBootiful Kotlin
33mThe State of Kotlin Support in Spring
48mKotlin for the back-end β Does the fancy code bring much value?
45mWhy Spring Loves Kotlin
