WebSocketDeploymentInfo,将使用默认的worker

WebSocketDeploymentInfo, the default worker will be used

在我的 SpringBoot 应用程序日志中,我看到以下警告:

UT026009: XNIO worker was not set on WebSocketDeploymentInfo, the default worker will be used
UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used

根据 Google 搜索,它们似乎与 Undertow 有关,建议进行改进,但似乎无法实施。

有没有人对这些有任何进一步的说明,也许可以就如何使日志消失提出建议,因为应用程序运行得很好?

buff池配置提示,不影响使用

根据 https://blog.csdn.net/weixin_39841589/article/details/90582354

的建议
@Component
public class CustomizationBean implements WebServerFactoryCustomizer<UndertowServletWebServerFactory> {
 
    @Override
    public void customize(UndertowServletWebServerFactory factory) {
        factory.addDeploymentInfoCustomizers(deploymentInfo -> {
            WebSocketDeploymentInfo webSocketDeploymentInfo = new WebSocketDeploymentInfo();
            webSocketDeploymentInfo.setBuffers(new DefaultByteBufferPool(false, 1024));
            deploymentInfo.addServletContextAttribute("io.undertow.websockets.jsr.WebSocketDeploymentInfo", webSocketDeploymentInfo);
        });
    }
}

排除undertow-websockets undertow-websockets-jsrio.undertow