This project is designed to show step by step how to migrate from Java to Kotlin with Spring Boot step by step:
- Step 0: Initial Java project
- Step 1: Java to Kotlin
- Step 2: Spring Boot 2
- Step 3: Spring WebFlux
- Step 4: Kotlin routing DSL
See Spring Kotlin support documentation for more details.
- Kotlin routing DSL is based on WebFlux Java functional API
- Only available for WebFlux, not MVC
- Router DSL
- Handlers
The end!
If you want to go even further with Kotlin, it can be used for Gradle build via its Kotlin DSL and for frontend / multiplatform code, see spring-kotlin-fullstack example project.