Git命令教程

摘要: 你的本地仓库有 Git 维护的三棵“树”组成,这是 Git 的核心框架。这三棵树分别是:工作区域、暂存区域和 Git 仓库 工作区域(Working Directory)就是你平时存放项目代码的地方。 暂存区域(Stage)用于临时存放你的改动,事实上它只是一个文件,保存即将提交的文件列表信息。 G 阅读全文
posted @ 2020-07-28 16:46 TheKingJames 阅读(454) 评论(0) 推荐(0) 编辑

Properties文件载入工具类

摘要: public class PropertiesLoader { private static Logger logger = LoggerFactory.getLogger(PropertiesLoader.class); private static ResourceLoader resource 阅读全文
posted @ 2020-07-27 17:31 TheKingJames 阅读(279) 评论(0) 推荐(0) 编辑

有序的properties的工具类

摘要: public class OrderProperties extends Properties { /** 序列化ID */ private static final long serialVersionUID = -762117852594617585L; private static final 阅读全文
posted @ 2020-07-27 17:30 TheKingJames 阅读(167) 评论(0) 推荐(0) 编辑

对象操作工具类

摘要: public class ObjectUtils extends org.apache.commons.lang3.ObjectUtils { /** * 注解到对象复制,只复制能匹配上的方法。 * @param annotation * @param object */ public static 阅读全文
posted @ 2020-07-27 17:28 TheKingJames 阅读(184) 评论(0) 推荐(0) 编辑

反射工具类

摘要: public class Reflections { private static final String SETTER_PREFIX = "set"; private static final String GETTER_PREFIX = "get"; private static final 阅读全文
posted @ 2020-07-27 17:25 TheKingJames 阅读(86) 评论(0) 推荐(0) 编辑

Jedis工具类

摘要: public class JedisUtils { private static Logger logger = LoggerFactory.getLogger(JedisUtils.class); private static JedisPool jedisPool = SpringContext 阅读全文
posted @ 2020-07-27 17:24 TheKingJames 阅读(156) 评论(0) 推荐(0) 编辑

Jsoup工具类

摘要: public class JsoupUtil { /** * 发送get请求获取返回body * @param url 请求地址 * @param cookie 请求cookie * @return * @throws IOException */ public static Document ht 阅读全文
posted @ 2020-07-27 17:23 TheKingJames 阅读(147) 评论(0) 推荐(0) 编辑

Html工具类

摘要: public class HtmlUtil { /** * 单例工具类 */ public HtmlUtil() { } public static Document getDoc(String url)throws IOException { File file = new File(url); 阅读全文
posted @ 2020-07-27 17:22 TheKingJames 阅读(105) 评论(0) 推荐(0) 编辑

文件操作工具类 :实现文件的创建、删除、复制、压缩、解压以及目录的创建、删除、复制、压缩解压等功能

摘要: public class FileUtils extends org.apache.commons.io.FileUtils { private static Logger logger = LoggerFactory.getLogger(FileUtils.class); /** * 复制单个文件 阅读全文
posted @ 2020-07-27 17:20 TheKingJames 阅读(187) 评论(0) 推荐(0) 编辑

关于异常的工具类

摘要: public class Exceptions { /** * 将CheckedException转换为UncheckedException. */ public static RuntimeException unchecked(Exception e) { if (e instanceof Ru 阅读全文
posted @ 2020-07-27 17:18 TheKingJames 阅读(240) 评论(0) 推荐(0) 编辑