From 5b545fd1006fb28dbe3928c666db2d8a0622fcf2 Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 29 十一月 2023 17:07:05 +0800
Subject: [PATCH] 优化
---
ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java b/ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java
index 28e3e36..c85acea 100644
--- a/ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java
+++ b/ycl-platform/src/main/java/com/ycl/timer/GetDingUserOrgTimer.java
@@ -52,11 +52,11 @@
@Override
public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
- if (contextRefreshedEvent.getApplicationContext().getParent() == null) {
- Thread thread = new Thread(this::run);
- thread.setUncaughtExceptionHandler(handler);
- thread.start();
- }
+// if (contextRefreshedEvent.getApplicationContext().getParent() == null) {
+// Thread thread = new Thread(this::run);
+// thread.setUncaughtExceptionHandler(handler);
+// thread.start();
+// }
}
@Autowired
@@ -204,6 +204,6 @@
@Override
public void run(ApplicationArguments args) throws Exception {
- run();
+// run();
}
}
--
Gitblit v1.8.0