From 64af3ae6ee873cb2e36645394bd1d7856045e0e3 Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期五, 06 十二月 2024 14:15:40 +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..8f04113 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; +@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(); + } // @Override -- Gitblit v1.9.1