update springboot 3.1.7 => 3.2.1 全面支持虚拟线程

update springcloud 2022.0.4 => 2023.0.0
update springboot-admin 3.1.8 => 3.2.0
update springdoc 2.2.0 => 2.3.0
update redisson 3.24.3 => 3.25.2
update hutool 5.8.22 => 5.8.24
update dynamic-ds 4.2.0 => 4.3.0
This commit is contained in:
疯狂的狮子Li
2024-01-05 10:44:27 +08:00
parent 4fc3265d17
commit 2712a38d63
4 changed files with 20 additions and 11 deletions

View File

@@ -34,7 +34,7 @@
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.mybatis</groupId>

View File

@@ -24,6 +24,10 @@ public class UndertowConfig implements WebServerFactoryCustomizer<UndertowServle
WebSocketDeploymentInfo webSocketDeploymentInfo = new WebSocketDeploymentInfo();
webSocketDeploymentInfo.setBuffers(new DefaultByteBufferPool(false, 512));
deploymentInfo.addServletContextAttribute("io.undertow.websockets.jsr.WebSocketDeploymentInfo", webSocketDeploymentInfo);
// 使用虚拟线程 解除下方注释 仅限jdk21
// if (SpringUtils.getProperty("spring.threads.virtual.enabled", Boolean.class, false)) {
// deploymentInfo.setExecutor(Executors.newVirtualThreadPerTaskExecutor());
// }
});
}