From 8a89ba02db5c19db669a5cf9bb7d443223bdfb71 Mon Sep 17 00:00:00 2001
From: 刘帅 <rr.iii@qq.com>
Date: 星期二, 29 九月 2026 10:48:21 +0800
Subject: [PATCH] 会员管理及取消场地预约问题
---
cloud-server-other/src/main/java/com/dsh/OtherApplication.java | 10 ++++++++--
1 files changed, 8 insertions(+), 2 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..554ff58 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
-@EnableFeignClients
+@EnableScheduling
+@EnableFeignClients(defaultConfiguration = com.dsh.other.audit.FeignAuditConfiguration.class)
@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