From 9ea4960c7131b486bdf29c9a84fa23c6a4910168 Mon Sep 17 00:00:00 2001 From: Luoye_W Date: Wed, 28 Jul 2021 16:30:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=8D=E4=BD=8Emaven=E7=BC=96=E8=AF=91jdk?= =?UTF-8?q?=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 4 ++-- src/main/java/io/qyi/e5/config/Start.java | 1 + src/main/java/io/qyi/e5/service/task/impl/TaskImpl.java | 4 ---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/pom.xml b/pom.xml index 4fa33b4..c682507 100644 --- a/pom.xml +++ b/pom.xml @@ -176,8 +176,8 @@ org.apache.maven.plugins maven-compiler-plugin - 9 - 9 + 8 + 8 diff --git a/src/main/java/io/qyi/e5/config/Start.java b/src/main/java/io/qyi/e5/config/Start.java index 44e9472..7cebfe1 100644 --- a/src/main/java/io/qyi/e5/config/Start.java +++ b/src/main/java/io/qyi/e5/config/Start.java @@ -79,6 +79,7 @@ public class Start { } catch (InterruptedException e) { e.printStackTrace(); } + log.info("本轮调用完成!"); } /*任务执行*/ diff --git a/src/main/java/io/qyi/e5/service/task/impl/TaskImpl.java b/src/main/java/io/qyi/e5/service/task/impl/TaskImpl.java index 3b3ce47..9c9d017 100644 --- a/src/main/java/io/qyi/e5/service/task/impl/TaskImpl.java +++ b/src/main/java/io/qyi/e5/service/task/impl/TaskImpl.java @@ -12,13 +12,9 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Service; -import javax.annotation.PreDestroy; -import java.io.IOException; import java.util.Iterator; import java.util.List; import java.util.Random; -import java.util.concurrent.Flow; -import java.util.concurrent.SubmissionPublisher; /** * @program: e5