|
|
@ -24,6 +24,7 @@ import org.eclipse.jetty.websocket.jsr356.server.deploy.WebSocketServerContainer
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnJava;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
|
|
|
|
import org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration;
|
|
|
|
import org.springframework.boot.autoconfigure.web.EmbeddedServletContainerAutoConfiguration;
|
|
|
@ -62,6 +63,7 @@ public class WebSocketAutoConfiguration {
|
|
|
|
|
|
|
|
|
|
|
|
@Bean
|
|
|
|
@Bean
|
|
|
|
@ConditionalOnMissingBean(name = "websocketContainerCustomizer")
|
|
|
|
@ConditionalOnMissingBean(name = "websocketContainerCustomizer")
|
|
|
|
|
|
|
|
@ConditionalOnJava(ConditionalOnJava.JavaVersion.SEVEN)
|
|
|
|
public TomcatWebSocketContainerCustomizer websocketContainerCustomizer() {
|
|
|
|
public TomcatWebSocketContainerCustomizer websocketContainerCustomizer() {
|
|
|
|
return new TomcatWebSocketContainerCustomizer();
|
|
|
|
return new TomcatWebSocketContainerCustomizer();
|
|
|
|
}
|
|
|
|
}
|
|
|
|