上一页 1 2 3 4 5 6 7 8 ··· 11 下一页
摘要: package com.ict.compent.wx; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.URL; import java.net.URLConnectio... 阅读全文
posted @ 2017-07-24 14:08 胡一生 阅读(241) 评论(0) 推荐(0)
摘要: Nginx 安装 系统平台:CentOS release 6.6 (Final) 64位。 一、安装编译工具及库文件 二、首先要安装 PCRE PCRE 作用是让 Nginx 支持 Rewrite 功能。 1、下载 PCRE 安装包,下载地址: http://downloads.sourceforg 阅读全文
posted @ 2017-06-23 17:50 胡一生 阅读(199) 评论(0) 推荐(0)
摘要: 首先下载Maven并解压,并移动到usr/local目录下 $ tar vxf apache-maven-3.2.3-bin.tar.gz $ mv apache-maven-3.2.3 /usr/local/maven3 修改环境变量,在/etc/profile中添加以下几行 MAVEN_HOME 阅读全文
posted @ 2017-06-23 13:26 胡一生 阅读(185) 评论(0) 推荐(1)
摘要: private int hash; // Default to 0 public int hashCode() { int h = hash; if (h == 0 && value.length > 0) { char val[] = value; for (int i = 0; i < value.length;... 阅读全文
posted @ 2017-06-22 11:59 胡一生 阅读(224) 评论(0) 推荐(0)
摘要: package com;import java.text.DateFormat;import java.text.ParseException;import java.text.SimpleDateFormat;import java.util.Calendar;import java.util.Date;public class DateTest { public static void... 阅读全文
posted @ 2017-06-21 18:58 胡一生 阅读(4341) 评论(0) 推荐(1)
摘要: /** * 获取本周、本季度、本月、上月的开始日期、结束日期 */ var now = new Date(); //当前日期 var nowDayOfWeek = now.getDay(); //今天本周的第几天 var nowDay = now.getDate(); //当前日 var nowMonth = now.getMonth(); //当前月 var nowYear = now.g... 阅读全文
posted @ 2017-06-13 09:29 胡一生 阅读(9023) 评论(0) 推荐(2)
摘要: public class ListTest { public static void main(String[] args) { List a1=new ArrayList(); for (int i = 0; i a2=new ArrayList(); for (int i = 0; i a3=new HashSet(); ... 阅读全文
posted @ 2017-06-07 16:05 胡一生 阅读(2707) 评论(0) 推荐(0)
摘要: package com.modules.plateform.tool; import java.util.regex.Pattern; /** * 账户相关属性验证工具 * */ public class AccountValidatorUtil { /** * 正则表达式:验证用户名 */ public static final String REG... 阅读全文
posted @ 2017-02-21 20:57 胡一生 阅读(67108) 评论(6) 推荐(1)
摘要: /** * 判断是否包含汉字 * @param str * @return */ public static boolean isContainChinese(String str) { Pattern p = Pattern.compile("[\u4e00-\u9fa5]"); Matcher m = p... 阅读全文
posted @ 2017-02-21 14:51 胡一生 阅读(1120) 评论(0) 推荐(0)
摘要: UPDATE tablea aJOIN tableb bSET a.val = b.val WHERE b.id = a.id 阅读全文
posted @ 2017-01-18 16:00 胡一生 阅读(2372) 评论(3) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 11 下一页