-
Notifications
You must be signed in to change notification settings - Fork 41.3k
Closed as not planned
Closed as not planned
Copy link
Labels
for: external-projectFor an external project and not something we can fixFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is validAn issue that we don't feel is valid
Description
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>
I am using the above dependency to build my application, and I am also using JDK 21. I want to leverage the new feature of JDK 21 - virtual threads. I have set
spring.threads.virtual.enabled=true
to enable virtual threads. I created an endpoint to test whether virtual threads are running:
@PostMapping("/test")
public Mono<Void> test() {
System.out.println("----->>>>>>>> " + Thread.currentThread());
return Mono.empty();
}
However, the output of System.out shows:
----->>>>>>>>Thread[#75,reactor-http-nio-2,5,main]
This clearly indicates a traditional thread name. I am unsure why virtual threads are not taking effect.
Metadata
Metadata
Assignees
Labels
for: external-projectFor an external project and not something we can fixFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is validAn issue that we don't feel is valid