Skip to content

sdeleuze/spring-kotlin-deepdive

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Kotlin deepdive

This project is designed to show step by step how to migrate from Java to Kotlin with Spring Boot step by step:

See Spring Kotlin support documentation for more details.

Step 2: Spring Boot 2

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

Go to step 3: Spring WebFlux

About

A journey from Java to Kotlin with Spring

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published