随笔分类 - 封装的工具类Utils
摘要:public static boolean isNotEmpty(Object object) { if(object instanceof List){ List list = (List)object; if(list != null && list.size() > 0){ return tr
阅读全文
摘要:方便调试错误 public class ErrorUtils { static boolean flag = true; public static void print(String msg){ if (flag){ System.out.println(msg); }else { // } }
阅读全文
摘要:添加ID时使用 import java.util.UUID; public class IDUtil { public static String genId(){ return UUID.randomUUID().toString().replaceAll("-",""); } }
阅读全文
摘要:import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFDateUtil; import org.apache.poi.hssf.usermodel.HSSFWorkbook; i
阅读全文
摘要:package com.dhc.util; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.faster
阅读全文