---
title: "Comment by Divine Threepwodd on \"Enabling Virtual Thread in Kotlin + Spring Boot\" | Hashnode"
description: "Hey, thanks for the report. I am just wondering why you need all these --enable-preview declarations for jdk 21 since you mentioned that this is already enabled"
url: "https://hashnode.com/posts/enabling-virtual-thread-in-kotlin-spring-boot/65803f11119ea81e7199e842/comment/65fd4851edfb609f329fa5eb"
---

[Discussion](https://hashnode.com/posts/enabling-virtual-thread-in-kotlin-spring-boot/65803f11119ea81e7199e842)

Comment [Enabling Virtual Thread in Kotlin + Spring Boot](https://hashnode.com/posts/enabling-virtual-thread-in-kotlin-spring-boot/65803f11119ea81e7199e842)

[Divine Threepwodd](https://hashnode.com/@divinethreepwood)

[Mar 22, 2024](https://hashnode.com/posts/enabling-virtual-thread-in-kotlin-spring-boot/65803f11119ea81e7199e842/comment/65fd4851edfb609f329fa5eb)

Hey, thanks for the report. I am just wondering why you need all these --enable-preview declarations for jdk 21 since you mentioned that this is already enabled by default in the LTS?

[Taehyeong Lee](https://hashnode.com/@jsonobject)

[Mar 25, 2024](https://hashnode.com/posts/enabling-virtual-thread-in-kotlin-spring-boot/65803f11119ea81e7199e842/comment/65fd4851edfb609f329fa5eb#reply-6600bfc07c2af3872c7e93e8)

Good point. JDK 21 wasn't out at the time of the original post, which is why there was a vestige of it in the example. As you say, the --enable-preview option is not needed in JDK 21. I've fixed the example as well. Thanks for the feedback :)
