build: 使用默认的 Spring Boot 内嵌 Web 容器,实现虚拟线程处理请求

Spring Boot v3.3.0-M3 删除了对 Undertow 的虚拟线程支持,因为它会泄漏内存
This commit is contained in:
xiongxiaoyang 2024-06-02 12:15:05 +08:00
parent 9da5064a9e
commit 876d9b8cbe

13
pom.xml
View File

@ -31,19 +31,6 @@
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<!-- Exclude the Tomcat dependency -->
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- Use Undertow instead -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-undertow</artifactId>
</dependency>
<!-- mybatis-plus -->