From c52f83ef5f702b3c178881d3eee72267c77e7751 Mon Sep 17 00:00:00 2001 From: zhibing.pu <393733352@qq.com> Date: 星期三, 24 七月 2024 17:26:46 +0800 Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/PlayPai into 2.0 --- cloud-server-other/src/main/java/com/dsh/OtherApplication.java | 8 +++++++- 1 files changed, 7 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..a21a0d8 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,18 @@ * @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