[英]WebSocketDeploymentInfo, the default worker will be used
In my SpringBoot application logs I see the following WARNs:在我的 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
From a Google search it seems they could be related to Undertow suggesting for an improvement which seems to be impossible to be implemented.从谷歌搜索看来,它们可能与 Undertow 有关,建议进行一项似乎不可能实施的改进。
Does anyone have any further clarifications on these, and maybe a suggestion on how to make the logs disappear since the application runs just fine?有没有人对这些有任何进一步的澄清,也许是关于如何使日志消失的建议,因为应用程序运行得很好?
It is a heads up for configuration of buff pool and does not effect in using.它是buff池配置的提示,不影响使用。
As suggested from https://blog.csdn.net/weixin_39841589/article/details/90582354 ,正如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
If not using WebSocket in Undertow on SpringBoot.如果不在 SpringBoot 上的 Undertow 中使用 WebSocket。
implementation ("org.springframework.boot:spring-boot-starter-undertow") {
exclude group: "io.undertow", module: "undertow-websockets-jsr"
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.