Spring use Virtual threads
Introduction In this post, I quickly wanted to show you how to use virtual thread with Spring. All you have to do is enable it. That is if you are already running Java 21 and using Spring 3.2.0 or later.
Enabling Virtual Threads To enable virtual threads all you need to do is to create an applications.properties file in the resource directory if you don't have one already, and add the following line: