摘要:
public class StringUtil { /** * 屏蔽身份证号 * @param src * @param find * @return */ public static String screenIdentityCard(String idCard) { String identit 阅读全文
摘要:
public class HttpRequest { private static boolean debug = true; //get请求 public static String sendGet(String url, String param) { if (!debug) { return 阅读全文
摘要:
import jxl.Workbook; import jxl.write.*; //导入的两个包 <dependency> <groupId>net.sourceforge.jexcelapi</groupId> <artifactId>jxl</artifactId> <version>2.6. 阅读全文
摘要:
select * from 表名 where 目标字段(一般都是唯一id) = #{字段变量} and 时间字段 BETWEEN #{开始时间} and #{结束时间} ORDER BY 时间字段 DESC(降序) 默认则是升序 按时间段查询相关数据 order by desc 是按照降序排列 没有 阅读全文
摘要:
以 [] 开头的json数组字符串: str = "[{ "姓名":"张三", "年龄":"28" }]" //其中str为字符串格式 JSONArray jsonArray = JSONArray.fromObject(str); //如果是以{}开头的字符串 str = "{ "姓名":"张三" 阅读全文
摘要:
//调用第三方系统接口 PrintWriter out = null; BufferedReader in = null; JSONObject jsonObject = null; CloseableHttpResponse response = null; String result = ""; 阅读全文
摘要:
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; 阅读全文
摘要:
1 package com.skynet.rimp.common.utils.string; 2 3 import java.io.UnsupportedEncodingException; 4 import java.security.InvalidKeyException; 5 import j 阅读全文
摘要:
JAVA中:public class Test { public static void main(String args[]) { String Str = new String("hello"); System.out.print("返回值 :" ); System.out.println(St 阅读全文
摘要:
$(function () { /*生成32位随机流水号*/ /*默认去掉了容易混淆的字符oOLl,9gq,Vv,Uu,I1*/ var $chars = 'ABCDEFGHJKMNPQRSTWXYZabcdefhijkmnprstwxyz2345678'; var maxPos = $chars. 阅读全文