![](/img/trans.png)
[英]What are the default values used for StandardPBEStringEncryptor class?
[英]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
从谷歌搜索看来,它们可能与 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
如果不在 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.