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.
- Spring Data Kay
- No need for
kotlin-noarg
plugin since it supports natively Kotlin immutable classes
- No need for
- Spring Boot 2
jackson-module-kotlin
andjackson-datatype-jsr310
provided by default with Spring Boot Web starter- Mustache suffix is already
.mustache
by default runApplication<FooApplication>(*args)
instead ofSpringApplication.run(Application::class.java, *args)
- Null safety
@RequestParam
on nullable parameter- Extensions
- Reified type parameters for
RestOperations
- Array like syntax for
Model
- Reified type parameters for
- JUnit 5 +
@BeforeAll
/@AfterAll