aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-common/src/main/java')
-rw-r--r--juick-common/src/main/java/com/juick/server/component/JuickServerComponent.java2
-rw-r--r--juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/juick-common/src/main/java/com/juick/server/component/JuickServerComponent.java b/juick-common/src/main/java/com/juick/server/component/JuickServerComponent.java
index 792f446f..dba1f480 100644
--- a/juick-common/src/main/java/com/juick/server/component/JuickServerComponent.java
+++ b/juick-common/src/main/java/com/juick/server/component/JuickServerComponent.java
@@ -5,6 +5,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.scheduling.annotation.Scheduled;
+import org.springframework.stereotype.Component;
import org.springframework.web.socket.CloseStatus;
import org.springframework.web.socket.PingMessage;
import org.springframework.web.socket.TextMessage;
@@ -17,6 +18,7 @@ import javax.inject.Inject;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicBoolean;
+@Component
public class JuickServerComponent extends TextWebSocketHandler {
private static Logger logger = LoggerFactory.getLogger(JuickServerComponent.class);
@Inject
diff --git a/juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java b/juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java
index d9b842af..ac9eb224 100644
--- a/juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java
+++ b/juick-common/src/main/java/com/juick/server/configuration/BaseWebConfiguration.java
@@ -94,7 +94,7 @@ public class BaseWebConfiguration implements WebMvcConfigurer, SchedulingConfigu
private String hostname;
@Bean
- public ExecutorService service() {
+ public ExecutorService executorService() {
return Executors.newCachedThreadPool();
}
@Bean