For 2 years, we have introduced Kotlin support in Spring projects (Framework, Boot, Data) and published various blog posts, sample projects, slides and documentation. Today, we are publishing an opinionated tutorial intended to summarize in a single place how to build a Spring Boot web application in Kotlin leveraging these features and following best practices:
https://spring.io/guides/tutorials/spring-boot-kotlin/
Topics covered are:
- How to create a Spring Boot 2 project in Kotlin
- Understanding the build configuration
- Testing with JUnit 5: integration tests,
@WebMvcTest
+ mocking
- Persistence with JPA and data classes
- Creating your own extensions
- Rendering web pages with Mustache
- HTTP API with
@RestController
- Configuration properties
…