随笔分类 -  java工具类

记录常用工具类
摘要:function getQueryString(name) { var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i') var r = window.location.search.substr(1).match(reg) if (r 阅读全文
posted @ 2021-03-26 15:58 _情书 阅读(1134) 评论(0) 推荐(1) 编辑
摘要:public class XmlUtils { /** <一句话功能简述> * <功能详细描述>request转字符串 * @param request * @return * @see [类、类#方法、类#成员] */ public static String parseRequst(HttpSe 阅读全文
posted @ 2020-08-13 14:38 _情书 阅读(464) 评论(0) 推荐(0) 编辑
摘要:/** * @description 金额元分之间转换工具类 */ public class AmountUtils { /**金额为分的格式 */ public static final String CURRENCY_FEN_REGEX = "\\-?[0-9]+"; /** * 将分为单位的转 阅读全文
posted @ 2020-08-10 18:30 _情书 阅读(6794) 评论(0) 推荐(0) 编辑
摘要:发送示例: http://IP:port/baidu.com?action=2&yydm=kfcs&paytype=3&notifyUrl=1&czyh=wnpay&outSignNo=1 //post请求 public class DoPostUtils { public static Strin 阅读全文
posted @ 2020-07-06 09:15 _情书 阅读(19288) 评论(0) 推荐(0) 编辑
摘要:1 package com.skynet.common; 2 3 import java.net.URLDecoder; 4 import java.net.URLEncoder; 5 import javax.crypto.Cipher; 6 import javax.crypto.spec.Se 阅读全文
posted @ 2020-03-11 16:25 _情书 阅读(861) 评论(0) 推荐(0) 编辑
摘要:package com.skynet.rimp.common.utils.string; import java.text.ParseException; import java.util.Date; import java.util.HashMap; import java.util.Map; / 阅读全文
posted @ 2019-12-30 11:27 _情书 阅读(972) 评论(0) 推荐(0) 编辑
摘要:public class DateUtils { private static final String DEFAULT_PATTERN = "yyyyMMddHHmmss"; private static final String[] WEEK = {"星期一", "星期二", "星期三", "星 阅读全文
posted @ 2019-12-30 11:20 _情书 阅读(699) 评论(0) 推荐(0) 编辑
摘要:public class StringUtil { /** * 找指定字符出现的次数 * @param src * @param find * @return */ public static int getOccur(String src, String find) { int o = 0; in 阅读全文
posted @ 2019-12-30 11:09 _情书 阅读(286) 评论(0) 推荐(0) 编辑
摘要:public class StringUtil { /** * 屏蔽身份证号 * @param src * @param find * @return */ public static String screenIdentityCard(String idCard) { String identit 阅读全文
posted @ 2019-12-30 11:08 _情书 阅读(305) 评论(0) 推荐(0) 编辑
摘要:public class HttpRequest { private static boolean debug = true; //get请求 public static String sendGet(String url, String param) { if (!debug) { return 阅读全文
posted @ 2019-12-26 17:58 _情书 阅读(3054) 评论(0) 推荐(0) 编辑
摘要:1 package com.skynet.rimp.common.utils.util; 2 3 import java.util.Arrays; 4 import java.util.HashMap; 5 import java.util.Map; 6 import java.util.Set; 阅读全文
posted @ 2019-11-29 16:36 _情书 阅读(7730) 评论(0) 推荐(0) 编辑
摘要:package com.skynet.wechat.wxPay.common; import java.security.MessageDigest; import java.util.Iterator; import java.util.Map; import java.util.Set; imp 阅读全文
posted @ 2019-11-07 10:25 _情书 阅读(437) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示