diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-28 10:33:56 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2018-04-28 10:35:42 +0200 |
commit | 068113b0b4bedfd7491afa06c64734a0ff2959c6 (patch) | |
tree | 76c342b984d9ac801af595956f56869847f4f432 /backend/src/main | |
parent | Fix gitignore for gradle build folder (diff) | |
download | seven-wonders-068113b0b4bedfd7491afa06c64734a0ff2959c6.tar.gz seven-wonders-068113b0b4bedfd7491afa06c64734a0ff2959c6.tar.bz2 seven-wonders-068113b0b4bedfd7491afa06c64734a0ff2959c6.zip |
Migrate to Spring Boot 2.0.1 (using Spring 5)
Diffstat (limited to 'backend/src/main')
-rw-r--r-- | backend/src/main/java/org/luxons/sevenwonders/config/WebSocketConfig.java | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |