From e863d3485d077c90988c81a756b37ef21cf4962e Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期五, 17 十一月 2023 20:16:01 +0800 Subject: [PATCH] 后台bug修改 --- cloud-server-other/src/main/java/com/dsh/OtherApplication.java | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/cloud-server-other/src/main/java/com/dsh/OtherApplication.java b/cloud-server-other/src/main/java/com/dsh/OtherApplication.java index 7439d4b..9788bd6 100644 --- a/cloud-server-other/src/main/java/com/dsh/OtherApplication.java +++ b/cloud-server-other/src/main/java/com/dsh/OtherApplication.java @@ -11,6 +11,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Import; import org.springframework.context.support.PropertySourcesPlaceholderConfigurer; +import org.springframework.scheduling.annotation.EnableScheduling; import springfox.documentation.swagger2.annotations.EnableSwagger2; import javax.annotation.PostConstruct; @@ -20,13 +21,16 @@ * @author jason */ @EnableSwagger2 +@EnableScheduling @EnableFeignClients @MBCloudApplication @Import({WebConfig.class}) @MapperScan("com.dsh.other.mapper") public class OtherApplication { public static void main(String[] args) { - SpringApplication.run(OtherApplication.class, args); + try { + SpringApplication.run(OtherApplication.class, args); + }catch (Exception e){e.printStackTrace();} } @Bean -- Gitblit v1.7.1