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; /**