01 2019 档案
WatchDirService 实时监控
摘要:1 import config.Config; 2 3 import java.io.IOException; 4 import java.nio.file.*; 5 import java.util.List; 6 import java.util.concurrent.TimeUnit; 7 8 /** 9 * Created by jason on 2017/2/1...
阅读全文
删除文件代码块
摘要:1 public static boolean deleteFile(File dirFile) { 2 File[] files = dirFile.listFiles(); 3 if (!dirFile.exists()) { 4 return false; 5 } 6 if (dir...
阅读全文
UnzipUtil
摘要:public class UnzipUtil { private static final Logger logger = LoggerFactory.getLogger(CopyFileUtil.class); /** * Size of the buffer to read/write data */ private static final in...
阅读全文
DateUtil
摘要:1 public class DateUtil { 2 public static final String FORMAT_DATE_COMPACT = "yyyyMMdd"; 3 public static final String FORMAT_DATE_NORMAL = "yyyy-MM-dd"; 4 public static final String F...
阅读全文
Redishelp
摘要:1 /** 2 * @author yanming.zhang 3 * @date 2019/1/25 21:15 4 */ 5 @Component 6 public class RedisHelp { 7 8 @Autowired 9 private RedisTemplate redisTemplate; 10 11 ...
阅读全文
浙公网安备 33010602011771号