Spring can integrate with WebSockets to enable asynchronous data exchange between a client and server. This overcomes limitations of synchronous HTTP. WebSockets provide a persistent connection and low overhead compared to alternatives like polling. Spring supports WebSocket through STOMP, a messaging subprotocol. It allows configuration of WebSocket endpoints in Spring MVC. However, the internal Spring architecture is not optimal if an external message broker is involved rather than using Spring's embedded broker.