随笔分类 -  util

摘要:package org.linlinjava.litemall.core.util; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * RegexU 阅读全文
posted @ 2019-08-07 23:39 tonggc1668 阅读(351) 评论(0) 推荐(0)
摘要:package org.linlinjava.litemall.core.util; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; imp 阅读全文
posted @ 2019-08-07 23:38 tonggc1668 阅读(842) 评论(0) 推荐(0)
摘要:package org.linlinjava.litemall.core.util; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.io.BufferedReader; import java.io.IOException; import java.i 阅读全文
posted @ 2019-08-07 23:32 tonggc1668 阅读(139) 评论(0) 推荐(0)
摘要:package org.linlinjava.litemall.core.util; import com.github.pagehelper.Page; import java.util.HashMap; import java.util.List; import java.util.Map; /** * 响应操作结果 * * { * errno: 错误码, * ... 阅读全文
posted @ 2019-08-04 21:49 tonggc1668 阅读(248) 评论(0) 推荐(0)
摘要:package me.zhengjie.common.utils; import cn.hutool.core.util.IdUtil; import org.springframework.web.multipart.MultipartFile; import java.io.File; import java.io.IOException; import java.text.Decimal... 阅读全文
posted @ 2019-07-20 18:06 tonggc1668 阅读(338) 评论(0) 推荐(0)
摘要:package me.zhengjie.common.utils; import java.util.Calendar; import java.util.Date; /** * @author jie * @date 2018-12-13 * * 日期工具 */ public class TimeUtil { public static String getWeekDa... 阅读全文
posted @ 2019-07-20 17:59 tonggc1668 阅读(414) 评论(0) 推荐(0)
摘要:package me.zhengjie.common.utils; import me.zhengjie.common.exception.BadRequestException; import java.util.Optional; /** * 验证工具 * @author jie * @date 2018-11-23 */ public class ValidationUtil ... 阅读全文
posted @ 2019-07-20 10:48 tonggc1668 阅读(311) 评论(0) 推荐(0)
摘要:package me.zhengjie.core.utils; import org.springframework.util.DigestUtils; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.spec... 阅读全文
posted @ 2019-07-20 10:45 tonggc1668 阅读(1335) 评论(0) 推荐(0)
摘要:import org.springframework.beans.SimpleTypeConverter; private Object deserializeValue(Class returnType, String value) { SimpleTypeConverter typeConverter = new SimpleTypeConverter(); typeConv... 阅读全文
posted @ 2018-09-06 15:09 tonggc1668 阅读(155) 评论(0) 推荐(0)
摘要:import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.util.HashMap; import java.util.Map; import org.apache.commons.httpclient.NameValuePair; import org.apache.commons.httpcl... 阅读全文
posted @ 2017-09-12 15:52 tonggc1668 阅读(164) 评论(0) 推荐(0)
摘要:import java.io.IOException; import java.net.URLEncoder; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.apache.h... 阅读全文
posted @ 2017-09-04 17:20 tonggc1668 阅读(138) 评论(0) 推荐(0)
摘要:package com.yd.wmsc.util; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; ... 阅读全文
posted @ 2017-07-16 16:21 tonggc1668 阅读(194) 评论(0) 推荐(0)
摘要:public class ThrowableUtil { public static Throwable getDeepestCause(final Throwable throwable) { int count; Throwable cause; for (count = 5, cause = throwable; cause.getC... 阅读全文
posted @ 2017-06-30 09:40 tonggc1668 阅读(328) 评论(0) 推荐(0)
摘要:com.thoughtworks.xstream xstream 1.4.4 -1 100 25 1 11 19 10 22 12 12 17 8 100 100 49 19... 阅读全文
posted @ 2017-06-15 14:25 tonggc1668 阅读(397) 评论(0) 推荐(0)
摘要:import org.apache.commons.collections.CollectionUtils;import org.apache.commons.collections.Predicate; 阅读全文
posted @ 2017-06-14 17:34 tonggc1668 阅读(2020) 评论(0) 推荐(0)
摘要:import com.yundaex.common.validation.asserts.YDAssert; import com.yundaex.common.validation.asserts.YDIllegalArgumentException; public class IPUtils { 阅读全文
posted @ 2017-06-13 16:35 tonggc1668 阅读(183) 评论(0) 推荐(0)
摘要:import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; /** * 序列化,反序列化工具类 * 用于转换byte[]和对象 * 用作在jedis中的存取操作 ... 阅读全文
posted @ 2017-05-09 10:36 tonggc1668 阅读(322) 评论(0) 推荐(0)
摘要:import org.apache.commons.lang.StringUtils; public class StringUtil extends org.apache.commons.lang3.StringUtils { public static StringBuilder deleteLastSequence(StringBuilder sb, String suffix... 阅读全文
posted @ 2017-03-16 14:43 tonggc1668 阅读(202) 评论(0) 推荐(0)
摘要:package com.yundaex.utility.bean.filter; import java.util.ArrayList; import java.util.List; import org.apache.commons.lang.StringUtils; import com.yundaex.common.basic.comm.TransitentCommBasePO; ... 阅读全文
posted @ 2017-03-16 14:38 tonggc1668 阅读(227) 评论(0) 推荐(0)
摘要:import org.apache.commons.lang.StringUtils; public abstract class YDAssert { /**** * * @param expression * @param message */ public static void isTrue(boolean expressio... 阅读全文
posted @ 2017-03-16 10:12 tonggc1668 阅读(132) 评论(0) 推荐(0)