From baae63a330467be864de7d156bc189e84ae996b6 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 15 八月 2020 16:50:47 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/Boot.java |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/Boot.java b/src/main/java/com/zy/Boot.java
index 6f1f7db..a32bf07 100644
--- a/src/main/java/com/zy/Boot.java
+++ b/src/main/java/com/zy/Boot.java
@@ -1,6 +1,8 @@
 package com.zy;
 
+import com.core.common.SpringUtils;
 import com.zy.common.utils.RandomValidateCodeUtil;
+import com.zy.core.ServerBootstrap;
 import org.springframework.boot.SpringApplication;
 import org.springframework.boot.autoconfigure.SpringBootApplication;
 import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
@@ -11,6 +13,11 @@
     public static void main(String[] args) {
         RandomValidateCodeUtil.init();
         SpringApplication.run(Boot.class, args);
+        new Thread(()-> {
+            ServerBootstrap serverBootstrap = SpringUtils.getBean(ServerBootstrap.class);
+            serverBootstrap.init();
+        }).start();
+
     }
 
 //    @Override

--
Gitblit v1.9.1