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

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-04 16:33:40 +08:00
parent f101d70523
commit 30d7651322
5 changed files with 29 additions and 8 deletions

View File

@ -7,6 +7,18 @@
<artifactId>ruoyi-common</artifactId>
<version>${revision}</version>
</parent>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>21</source>
<target>21</target>
</configuration>
</plugin>
</plugins>
</build>
<modelVersion>4.0.0</modelVersion>
<artifactId>ruoyi-common-web</artifactId>

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());
// }
});
}