From 068113b0b4bedfd7491afa06c64734a0ff2959c6 Mon Sep 17 00:00:00 2001 From: Joffrey BION Date: Sat, 28 Apr 2018 10:33:56 +0200 Subject: Migrate to Spring Boot 2.0.1 (using Spring 5) --- .../main/java/org/luxons/sevenwonders/config/WebSocketConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'backend/src/main') diff --git a/backend/src/main/java/org/luxons/sevenwonders/config/WebSocketConfig.java b/backend/src/main/java/org/luxons/sevenwonders/config/WebSocketConfig.java index 7ac53250..b8018a86 100644 --- a/backend/src/main/java/org/luxons/sevenwonders/config/WebSocketConfig.java +++ b/backend/src/main/java/org/luxons/sevenwonders/config/WebSocketConfig.java @@ -5,14 +5,14 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.messaging.simp.config.ChannelRegistration; import org.springframework.messaging.simp.config.MessageBrokerRegistry; -import org.springframework.web.socket.config.annotation.AbstractWebSocketMessageBrokerConfigurer; import org.springframework.web.socket.config.annotation.EnableWebSocketMessageBroker; import org.springframework.web.socket.config.annotation.StompEndpointRegistry; +import org.springframework.web.socket.config.annotation.WebSocketMessageBrokerConfigurer; import org.springframework.web.socket.server.support.DefaultHandshakeHandler; @Configuration @EnableWebSocketMessageBroker -public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { +public class WebSocketConfig implements WebSocketMessageBrokerConfigurer { private final TopicSubscriptionInterceptor topicSubscriptionInterceptor; @@ -46,6 +46,6 @@ public class WebSocketConfig extends AbstractWebSocketMessageBrokerConfigurer { @Override public void configureClientInboundChannel(ChannelRegistration registration) { - registration.setInterceptors(topicSubscriptionInterceptor); + registration.interceptors(topicSubscriptionInterceptor); } } -- cgit