Enable virtual threads on Java 21

MSAL

Set spring.threads.virtual.enabled to true in application.properties or application.yml.

org.openrewrite.java.spring.boot3.EnableVirtualThreads
mod run . --recipe=org.openrewrite.java.spring.boot3.EnableVirtualThreads

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Add a Spring configuration property