From 526f1f59497e3b00905df2a2a838a08f0a110bc7 Mon Sep 17 00:00:00 2001
From: vincent <1341870251@qq.com>
Date: 星期二, 18 八月 2020 13:38:18 +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