From 6ec9e19c91c93204a8f5b7190fb6f54a204e7ff7 Mon Sep 17 00:00:00 2001 From: zc <zc> Date: 星期一, 29 七月 2024 11:36:19 +0800 Subject: [PATCH] 订单组托代码 --- src/main/java/com/zy/Boot.java | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/Boot.java b/src/main/java/com/zy/Boot.java index aeacc4f..c2e5b78 100644 --- a/src/main/java/com/zy/Boot.java +++ b/src/main/java/com/zy/Boot.java @@ -1,19 +1,24 @@ package com.zy; +import com.zy.common.utils.RandomValidateCodeUtil; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; +import org.springframework.scheduling.annotation.EnableScheduling; +@EnableScheduling @SpringBootApplication public class Boot extends SpringBootServletInitializer { public static void main(String[] args) { + RandomValidateCodeUtil.init(); SpringApplication.run(Boot.class, args); } @Override protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { + RandomValidateCodeUtil.init(); return builder.sources(Boot.class); } -- Gitblit v1.9.1