智慧保安后台管理-外网-验收版本
tangzy
2021-12-06 cc057177b2fb17aee9a173a6adbabdc578fd74c7
src/main/java/org/springblade/Application.java
@@ -18,6 +18,8 @@
import org.springblade.common.constant.CommonConstant;
import org.springblade.core.launch.BladeApplication;
import org.springblade.modules.webscoket.WebSocketServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
@@ -28,11 +30,16 @@
 */
@EnableScheduling
@SpringBootApplication
public class Application {
public class Application implements CommandLineRunner {
   public static void main(String[] args) {
      BladeApplication.run(CommonConstant.APPLICATION_NAME, Application.class, args);
   }
   @Override
   public void run(String... args) throws Exception {
      WebSocketServer webSocketServer= new WebSocketServer(2086);
   }
}