spring_reference/IV. Spring Boot features/37. WebSockets.md

6 lines
469 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### 37. WebSockets
Spring Boot为内嵌的Tomcat(8和7)Jetty 9和Undertow提供WebSockets自动配置。如果你正在将一个war包部署到一个单独的容器Spring Boot会假设该容器会对它的WebSocket支持相关的配置负责。
Spring框架提供[丰富的WebSocket支持](http://docs.spring.io/spring/docs/4.1.4.RELEASE/spring-framework-reference/htmlsingle/#websocket)通过spring-boot-starter-websocket模块可以轻易获取到。