From ae1721b7c826d2dd409600e8e66ccd3733b43096 Mon Sep 17 00:00:00 2001 From: yefeng <62734268+silent-wind1@users.noreply.github.com> Date: Tue, 27 Feb 2024 10:44:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=20(#317)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/oddfar/campus/business/task/CampusIMTTask.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/campus-modular/src/main/java/com/oddfar/campus/business/task/CampusIMTTask.java b/campus-modular/src/main/java/com/oddfar/campus/business/task/CampusIMTTask.java index f59eb3f..adfdaff 100644 --- a/campus-modular/src/main/java/com/oddfar/campus/business/task/CampusIMTTask.java +++ b/campus-modular/src/main/java/com/oddfar/campus/business/task/CampusIMTTask.java @@ -2,6 +2,7 @@ import com.oddfar.campus.business.service.IMTService; import com.oddfar.campus.business.service.IUserService; +import lombok.RequiredArgsConstructor; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -15,13 +16,13 @@ */ @Configuration @EnableScheduling +@RequiredArgsConstructor public class CampusIMTTask { private static final Logger logger = LoggerFactory.getLogger(CampusIMTTask.class); - @Autowired - private IMTService imtService; - @Autowired - private IUserService iUserService; + private final IMTService imtService; + + private final IUserService iUserService; /**