智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
src/main/java/org/springblade/Application.java
@@ -21,6 +21,7 @@
import org.springblade.modules.webscoket.WebSocketServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
@@ -30,16 +31,18 @@
 */
@EnableScheduling
@SpringBootApplication
public class Application implements CommandLineRunner {
@EnableAsync
//public class Application implements CommandLineRunner {
public class Application{
   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);
   }
//   @Override
//   public void run(String... args) throws Exception {
//      WebSocketServer webSocketServer= new WebSocketServer(2086);
//   }
}