Răsfoiți Sursa

林武泰/新增若依定时任务-邮箱通知功能(收件人待改email 已TODO)

LinWuTai 2 ani în urmă
părinte
comite
b968004a48

+ 1 - 1
lab-admin/src/main/java/com/ruoyi/RuoYiApplication.java

@@ -11,7 +11,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
  * @author ruoyi
  */
 @SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
-@EnableScheduling
+// @EnableScheduling
 public class RuoYiApplication
 {
     public static void main(String[] args)

+ 0 - 1
lab-admin/src/main/java/com/ruoyi/asset/schedule/task.java

@@ -11,7 +11,6 @@ public class task {
     @Resource
     private ITbAssetBorrowRecordService borrowRecordService;
 
-    @Scheduled(cron = "0 0 8 ? * *")
     private void execute() {
         borrowRecordService.informNotReturnUser();
     }