@Configuration
@ConditionalOnClass(value=org.springframework.web.socket.WebSocketHandler.class)
@ConditionalOnMissingBean(value=org.springframework.web.socket.server.config.WebSocketConfigurer.class)
@EnableWebSocket
public class WebSocketAutoConfiguration
extends Object
Auto configuration for websockets (and sockjs in particular). Users should be able to
just define beans of type WebSocketHandler. If spring-websocket is
detected on the classpath then we add a DefaultSockJsService and an MVC handler
mapping to /<beanName>/** for all of the
WebSocketHandler beans that have a bean name beginning with "/".
- Author:
- Dave Syer