#kotlin-Spring Boot : Gotchas
▻https://hackernoon.com/kotlin-spring-boot-gotchas-e267be7ec022?source=rss----3a8144eabfe3---4
It’s been around 6 months since we adopted Kotlin for our backend services at the company I currently work at. We’ve been migrating an existing java #spring boot service to Kotlin.Our experience with Kotlin has been mostly great. But sometimes it does feel like Spring was retrofitted to support Kotlin.There’s the basic issues like :Spring requires classes with annotations to be open, all classes in Kotlin are closed by default. This can be resolved by adding the kotlin-spring plugin to the gradle config.Hibernate entities require a no-arg constructor, Kotlin has provided a compiler plugin kotlin-jpa to generate an additional zero-argument constructor for classes.It is important to note that these issues have been identified and the project is generated using start.spring.io have these plugins (...)