aboutsummaryrefslogtreecommitdiff
path: root/juick-ws
diff options
context:
space:
mode:
authorGravatar Alexander Alexeev2016-11-30 13:05:22 +0700
committerGravatar Alexander Alexeev2016-11-30 13:05:22 +0700
commitb45c000ed478f2407288aab1532425288f998689 (patch)
tree8890345045f0ba12ddd6cffc3bfa7d9e4d6f35f2 /juick-ws
parent3e783602987483bbd2ee5791020894891d39b016 (diff)
configurations clean-up, import is redundant
Diffstat (limited to 'juick-ws')
-rw-r--r--juick-ws/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java3
-rw-r--r--juick-ws/src/main/java/com/juick/ws/configuration/WebsocketInitializer.java2
2 files changed, 1 insertions, 4 deletions
diff --git a/juick-ws/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java b/juick-ws/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java
index 4c20001a..fea6959f 100644
--- a/juick-ws/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java
+++ b/juick-ws/src/main/java/com/juick/ws/configuration/WebsocketConfiguration.java
@@ -1,11 +1,9 @@
package com.juick.ws.configuration;
-import com.juick.configuration.DataConfiguration;
import com.juick.ws.WebsocketComponent;
import com.juick.ws.XMPPConnection;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
-import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
@@ -22,7 +20,6 @@ import javax.inject.Inject;
@Configuration
@EnableWebSocket
@PropertySource("classpath:juick.conf")
-@Import(DataConfiguration.class)
class WebsocketConfiguration implements WebSocketConfigurer {
@Inject
private Environment env;
diff --git a/juick-ws/src/main/java/com/juick/ws/configuration/WebsocketInitializer.java b/juick-ws/src/main/java/com/juick/ws/configuration/WebsocketInitializer.java
index a754f1a9..bbbcc6a4 100644
--- a/juick-ws/src/main/java/com/juick/ws/configuration/WebsocketInitializer.java
+++ b/juick-ws/src/main/java/com/juick/ws/configuration/WebsocketInitializer.java
@@ -13,7 +13,7 @@ public class WebsocketInitializer extends AbstractAnnotationConfigDispatcherServ
@Override
protected Class<?>[] getRootConfigClasses() {
- return new Class<?>[]{WebsocketConfiguration.class};
+ return new Class<?>[]{WebsocketConfiguration.class, DataConfiguration.class};
}
@Override