aboutsummaryrefslogtreecommitdiff
path: root/juick-server-web/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-02-06 14:36:37 +0300
committerGravatar Vitaly Takmazov2018-02-06 14:36:37 +0300
commit19c8ed8a1d173ee16c5717d44b145ca365d2f6f5 (patch)
tree4a47347f2a98e2b65e62d89cea174e8e6af91fa3 /juick-server-web/src/main/java/com/juick
parent1d520f4d1bcfd78c21b7b542619cc828ff64dcb7 (diff)
api server should authenticate in database for now
Diffstat (limited to 'juick-server-web/src/main/java/com/juick')
-rw-r--r--juick-server-web/src/main/java/com/juick/server/configuration/JuickServerWebsocketConfiguration.java (renamed from juick-server-web/src/main/java/com/juick/server/configuration/JuickServerComponentConfiguration.java)5
1 files changed, 2 insertions, 3 deletions
diff --git a/juick-server-web/src/main/java/com/juick/server/configuration/JuickServerComponentConfiguration.java b/juick-server-web/src/main/java/com/juick/server/configuration/JuickServerWebsocketConfiguration.java
index a2df26fc..6790a7c9 100644
--- a/juick-server-web/src/main/java/com/juick/server/configuration/JuickServerComponentConfiguration.java
+++ b/juick-server-web/src/main/java/com/juick/server/configuration/JuickServerWebsocketConfiguration.java
@@ -29,8 +29,8 @@ import java.util.List;
@Lazy
@Configuration
@EnableScheduling
-public class JuickServerComponentConfiguration {
- private static final Logger logger = LoggerFactory.getLogger(JuickServerComponentConfiguration.class);
+public class JuickServerWebsocketConfiguration {
+ private static final Logger logger = LoggerFactory.getLogger(JuickServerWebsocketConfiguration.class);
@Value("${websocket_url:ws://localhost:8080/}")
private String baseUri;
@Value("${api_user:juick}")
@@ -63,7 +63,6 @@ public class JuickServerComponentConfiguration {
String websocketURI = UriComponentsBuilder.fromUriString(baseUri)
.queryParam("hash", hash).build().toUriString();
WebSocketConnectionManager manager = new WebSocketConnectionManager(client(), juickServerComponent, websocketURI);
- manager.setAutoStartup(true);
return manager;
}
@Bean