类 WebSocketServletAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.websocket.servlet.WebSocketServletAutoConfiguration
@AutoConfiguration(before=ServletWebServerFactoryAutoConfiguration.class)
@ConditionalOnClass({jakarta.servlet.Servlet.class,jakarta.websocket.server.ServerContainer.class})
@ConditionalOnWebApplication(type=SERVLET)
public class WebSocketServletAutoConfiguration
extends Object
Auto configuration for WebSocket servlet server in embedded Tomcat, Jetty or Undertow.
Requires the appropriate WebSocket modules to be on the classpath.
If Tomcat's WebSocket support is detected on the classpath we add a customizer that installs the Tomcat WebSocket initializer. In a non-embedded server it should already be there.
If Jetty's WebSocket support is detected on the classpath we add a configuration that configures the context with WebSocket support. In a non-embedded server it should already be there.
If Undertow's WebSocket support is detected on the classpath we add a customizer that installs the Undertow WebSocket DeploymentInfo Customizer. In a non-embedded server it should already be there.
- 从以下版本开始:
- 1.0.0
- 作者:
- Dave Syer, Phillip Webb, Andy Wilkinson
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
WebSocketServletAutoConfiguration
public WebSocketServletAutoConfiguration()
-