diff options
author | Vitaly Takmazov | 2018-04-02 16:58:53 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-02 16:58:53 +0300 |
commit | be2cefb4868445ce0776c9b9e029cf3adfeaf804 (patch) | |
tree | 81a49763e5ec310296a4bee681e59ff83ed793a2 /juick-www/src/main/java/com/juick/Application.java | |
parent | 5b5ca32a22e2e8e95c9bca86ce23d19c4a69f83d (diff) |
www: start xmpp from bootRun
Diffstat (limited to 'juick-www/src/main/java/com/juick/Application.java')
-rw-r--r-- | juick-www/src/main/java/com/juick/Application.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/Application.java b/juick-www/src/main/java/com/juick/Application.java index cb132ae9..586c3e59 100644 --- a/juick-www/src/main/java/com/juick/Application.java +++ b/juick-www/src/main/java/com/juick/Application.java @@ -1,5 +1,9 @@ package com.juick; +import com.juick.server.CommandsManager; +import com.juick.server.XMPPConnection; +import com.juick.server.XMPPServer; +import com.juick.server.xmpp.router.XMPPRouter; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; @@ -19,6 +23,7 @@ public class Application extends SpringBootServletInitializer { } public static void main(String[] args) { - SpringApplication.run(Application.class, args); + SpringApplication.run(new Class[]{ Application.class, XMPPRouter.class, XMPPServer.class, + XMPPConnection.class, CommandsManager.class }, args); } } |