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 | 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