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 |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/Boot.java b/src/main/java/com/zy/Boot.java
index 7b7d3a7..a32bf07 100644
--- a/src/main/java/com/zy/Boot.java
+++ b/src/main/java/com/zy/Boot.java
@@ -1,5 +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;
@@ -8,7 +11,13 @@
 public class Boot extends SpringBootServletInitializer {
 
     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