From d983b88916d7489aa154984b67e1bcfb2f13f5d1 Mon Sep 17 00:00:00 2001 From: zc <zc@123> Date: 星期二, 06 五月 2025 11:10:43 +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 6f1f7db..a616580 100644 --- a/src/main/java/com/zy/Boot.java +++ b/src/main/java/com/zy/Boot.java @@ -4,13 +4,22 @@ 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; +@EnableAsync +@EnableScheduling @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