Spring with java vs Spring with kotlin

This page summarizes the projects mentioned and recommended in the original post on /r/Kotlin

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • initializr

    A quickstart generator for Spring projects

  • Used Spring (and Hibernate) with Kotlin for years and it works like a charme. If you don't create a new project on start.spring.io , I'd suggest to add the all-open respective the jpa kotlin plug-in to your Gradle konfiguration. These plug-ins will make your life easier, because otherwise you might need to find some workarounds for final class (the default) in Kotlin. But if you create a project with start.spring.io everything works out of the box.

  • mockk

    mocking library for Kotlin

  • https://mockk.io/ is great, too.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • Spring Security

    Spring Security

  • To be fair there were quite some unexpected surprises in the past with Spring and Kotlin (e.g. the Cachable annotation did not work with suspend functions, not all Spring security annotations were supported with coroutines), but most of them were ironed out already.

  • mockito-kotlin

    Using Mockito with Kotlin

  • What's wrong with Mockito for Kotlin?

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts