From 752d3a39d4fdc2da9edaedf4bec265d0311f9c88 Mon Sep 17 00:00:00 2001 From: 野心家 <1051256694@qq.com> Date: 星期一, 13 十一月 2023 20:54:01 +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..f25a356 100644 --- a/src/main/java/com/zy/Boot.java +++ b/src/main/java/com/zy/Boot.java @@ -1,14 +1,23 @@ package com.zy; +import com.zy.common.utils.RandomValidateCodeUtil; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; +import org.springframework.scheduling.annotation.EnableAsync; +@EnableAsync @SpringBootApplication 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