Package top.tangyh.basic.boot.undertow
Class UndertowServerFactoryCustomizer
java.lang.Object
top.tangyh.basic.boot.undertow.UndertowServerFactoryCustomizer
- All Implemented Interfaces:
org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory>
public class UndertowServerFactoryCustomizer
extends Object
implements org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory>
设置Undertow服务器 XnioWorker Buffers
解决启动时警告:[io.undertow.websockets.jsr.handleDeployment:68] --> UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#boot-features-programmatic-embedded-container-customization
- Author:
- zuihou
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory factory)
-
Constructor Details
-
UndertowServerFactoryCustomizer
public UndertowServerFactoryCustomizer()
-
-
Method Details
-
customize
public void customize(org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory factory) - Specified by:
customizein interfaceorg.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.embedded.undertow.UndertowServletWebServerFactory>
-