Summary

Kotlin helps a developer write concise, readable code. It fits hand in glove with the philosophy of Spring Boot to make application development easier and faster.

In this chapter, we started with understanding Kotlin and how it compares with Java. We built a couple of simple REST services with Spring Boot and Kotlin. We saw examples of how code with Kotlin for services and unit tests is concise.

Kotlin has made great strides in the last couple of years--becoming an officially supported language for Android was a great first step. Support for Kotlin in Spring Framework 5.0 is the icing on the cake. The future of Kotlin depends on how successful it is with the larger Java development community. It has the potential to be an important ...

Get Mastering Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.