去掉Apollo配置中心依赖

This commit is contained in:
kl
2017-12-14 18:55:59 +08:00
committed by klboke
parent ec0377f62c
commit 8ecfde980e
99 changed files with 3495 additions and 176 deletions

View File

@@ -0,0 +1,16 @@
package com.yudianbank.utils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
@Component
public class ShedulerClean {
@Value("${file.dir}")
String fileDir;
// @Scheduled(cron = "0 0 23 * * ?") //每晚23点执行一次
public void clean(){
System.out.println("执行一次清空文件夹");
DeleteFileUtil.deleteDirectory(fileDir);
}
}