Skip to content
TheChatArchiveThe Chat Archive
gpt-3.5-turbo-0301· OpenAIAi2 WildChat-4.8M (AI2)

Can I use Jvmrecord annotation in spring boot with kotlin?

  1. User

    Can I use Jvmrecord annotation in spring boot with kotlin?

  2. Assistant

    Yes, Java JVM Record annotations can be used in Spring Boot applications written in Kotlin. In fact, Kotlin has built-in support for JVM Records and can even be used to define records. To use JVM Records in Spring Boot with Kotlin, simply define your record class with the @JvmRecord annotation and use it like any regular Kotlin class.