• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
bigming
博客园    首页    新随笔    联系   管理    订阅  订阅
2019年1月29日
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... 阅读全文
posted @ 2019-01-29 16:45 bigming 阅读(415) 评论(0) 推荐(0)
删除文件代码块
摘要: 1 public static boolean deleteFile(File dirFile) { 2 File[] files = dirFile.listFiles(); 3 if (!dirFile.exists()) { 4 return false; 5 } 6 if (dir... 阅读全文
posted @ 2019-01-29 16:41 bigming 阅读(164) 评论(0) 推荐(0)
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... 阅读全文
posted @ 2019-01-29 16:39 bigming 阅读(120) 评论(0) 推荐(0)
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... 阅读全文
posted @ 2019-01-29 16:37 bigming 阅读(130) 评论(0) 推荐(0)
2019年1月28日
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 ... 阅读全文
posted @ 2019-01-28 18:49 bigming 阅读(193) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3