aboutsummaryrefslogtreecommitdiff
path: root/juick-notifications/src/main/java/com/juick/components/PushServer.java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-notifications/src/main/java/com/juick/components/PushServer.java')
-rw-r--r--juick-notifications/src/main/java/com/juick/components/PushServer.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/PushServer.java b/juick-notifications/src/main/java/com/juick/components/PushServer.java
index c22f48dc..a590c2d1 100644
--- a/juick-notifications/src/main/java/com/juick/components/PushServer.java
+++ b/juick-notifications/src/main/java/com/juick/components/PushServer.java
@@ -1,12 +1,15 @@
package com.juick.components;
import org.springframework.boot.SpringApplication;
+import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class PushServer {
public static void main(String[] args) {
- SpringApplication.run(PushServer.class, args);
+ SpringApplication app = new SpringApplication(PushServer.class);
+ app.setWebApplicationType(WebApplicationType.NONE);
+ app.run(args);
}
}