From 3dc0f89a1429472a13c5fb4ecb2cb94917b74fbc Mon Sep 17 00:00:00 2001
From: whycq <123456>
Date: 星期六, 24 五月 2025 14:41:17 +0800
Subject: [PATCH] #

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

diff --git a/src/main/java/com/zy/Boot.java b/src/main/java/com/zy/Boot.java
index d3929b2..960c17a 100644
--- a/src/main/java/com/zy/Boot.java
+++ b/src/main/java/com/zy/Boot.java
@@ -1,24 +1,25 @@
 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;
 import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.scheduling.annotation.EnableScheduling;
 
+@EnableScheduling
 @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();
+//        new Thread(()-> {
+//            ServerBootstrap serverBootstrap = SpringUtils.getBean(ServerBootstrap.class);
+//            serverBootstrap.init();
+//        }).start();
 
     }
 

--
Gitblit v1.9.1