|
|
@ -695,8 +695,8 @@ The following example shows how to do so in Java configuration: |
|
|
|
[subs="verbatim,quotes"] |
|
|
|
[subs="verbatim,quotes"] |
|
|
|
---- |
|
|
|
---- |
|
|
|
@Configuration |
|
|
|
@Configuration |
|
|
|
@EnableWebSocket |
|
|
|
@EnableWebSocketMessageBroker |
|
|
|
public class WebSocketConfig implements WebSocketConfigurer { |
|
|
|
public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void registerStompEndpoints(StompEndpointRegistry registry) { |
|
|
|
public void registerStompEndpoints(StompEndpointRegistry registry) { |
|
|
|