2020年9月23日

简易sql拼接工具类(使用StringBuilder实现)

摘要: /** * 简易sql拼接 * 注意不同重载方法的不同注释!!! */ public class SqlBuilder { /** 不要包含where */ public SqlBuilder(String sql){ this.sb = new StringBuilder(sql); } /** 阅读全文

posted @ 2020-09-23 19:44 码农记录 阅读(901) 评论(0) 推荐(0) 编辑

缓存工具类(使用ConcurrentMap集合实现)

摘要: public class Cache { static ConcurrentMap<String, Cache> datas = new ConcurrentHashMap<String, Cache>();//缓存集合 static long pMaxTime=1000*60*5;//最大缓存时间 阅读全文

posted @ 2020-09-23 19:14 码农记录 阅读(551) 评论(0) 推荐(0) 编辑

properties文档读取工具类

摘要: import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.uti 阅读全文

posted @ 2020-09-23 17:59 码农记录 阅读(118) 评论(0) 推荐(0) 编辑

时间工具类

摘要: import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Set; import jav 阅读全文

posted @ 2020-09-23 17:54 码农记录 阅读(120) 评论(0) 推荐(0) 编辑

Java分页、Json工具类

摘要: 1.JSON数据转换工具类 import java.util.List; import java.util.Map; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.ref 阅读全文

posted @ 2020-09-23 17:27 码农记录 阅读(445) 评论(0) 推荐(0) 编辑

导航