Skip to content

Commit 16aad85

Browse files
committed
Update to Spring Boot 3.2
1 parent 3148fcd commit 16aad85

File tree

4 files changed

+16
-43
lines changed

4 files changed

+16
-43
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ java -jar target/loom-spring-boot.jar
8989
```
9090

9191
Once launched, visit http://localhost:8080/api/current-thread.
92-
To switch to virtual threads, append the command line parameter `virtual`.
93-
The switch is implemented in [`SpringBootApplication`](frameworks/spring_boot/src/main/java/dev/nipafx/lab/loom/spring_boot/SpringBootApplication.java), which explicitly replaces the executors used to submit requests to.
92+
To switch to virtual threads, append the command line parameter `--spring.threads.virtual.enabled=true`, which sets the Spring property `spring.threads.virtual.enabled`, which in turn leads to Spring using a virtual thread for each request.
9493

95-
As far as I know, the blog post [_Embracing Virtual Threads_](https://spring.io/blog/2022/10/11/embracing-virtual-threads) is the most up-to-date documentation on Spring and virtual threads.
94+
As far as I know, [the release notes for version 3.2](https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.2-Release-Notes#support-for-virtual-threads) are the most up-to-date documentation on Spring and virtual threads.
9695

9796
### Quarkus
9897

frameworks/spring_boot/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>3.1.0</version>
8+
<version>3.2.3</version>
99
<relativePath/>
1010
</parent>
1111

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package dev.nipafx.lab.loom.spring_boot;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class SpringBootApp {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(SpringBootApp.class, args);
11+
}
12+
13+
}

frameworks/spring_boot/src/main/java/dev/nipafx/lab/loom/spring_boot/SpringBootApplication.java

-39
This file was deleted.

0 commit comments

Comments
 (0)