Virtual thread property Java Spring

Hello,

We are using temporal with Java Spring and have all our worker options set in the spring properties files including task queue names, capacity, worker classes, etc. I am trying to set all the workers to use virtual threads using:

spring:
temporal:
workers:
- task-queue: “sample queue”
virtual-threads:
using-virtual-threads: true

But this does not seem to work as Thread.currentThread().isVirtual() is always false. Is there a way to specify this?