spring-kotlin-deepdive

A journey from Java to Kotlin with Spring

Stars
78

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 0: The initial Java project

  • Simple blog with JSON HTTP API
  • Integration tests can be run via ./gradlew test (or in the IDE)
  • Run the project via ./gradlew bootRun (or in the IDE) and go to http://localhost:8080/ with your browser
  • Present the Java application software design
  • Reminders:
    • No need for annotating constructor when single constructor for autowiring it (as of Spring 4.3), show 2 syntaxes
    • @RequestMapping aliases: @GetMapping, @PostMapping, etc.
  • Reload via CTRL + F9 in IDEA (CMD + SHIFT + F9 on Mac)

Go to step 1: Java to Kotlin