Eclipse
David851101
这个作者很懒,什么都没留下…
展开
-
正则表达式基础应用(切割split(regex))
1. 基础字符串切割 String a = "asd adsf asdf dfkajsd yyy"; String reg1 = " +"; String[] val = a.split(reg1); for(String v : val){ System.out.println(v); }原创 2014-11-23 22:51:18 · 868 阅读 · 0 评论 -
正则表达式基础应用(替换replaceAll(regex,str))
1. 基础字符替换 要求: 将字符串中的原创 2014-11-23 23:33:49 · 4791 阅读 · 0 评论 -
正则表达式基础应用(获取Pattern)
/* * 将字符串中符合规则的子串取出 * * 操作步骤: * 1.先将正则表达式封装成对象 * 2.让正则对象和要操作的字符串相关联 * 3.关联后获取正则匹配引擎 * 4.通过引擎对符合规则的子串进行操作,比如取出 * */ package com.it; import java.util.regex.Matcher; import java.u原创 2014-11-24 00:21:47 · 429 阅读 · 0 评论 -
tomcat 大并发报错 Maximum number of threads (200) created for connector with address null and port 8080
1、INFO: Maximum number of threads (200) created for connector with address null and port 8091 说明:最大线程数错误 解决方案: 使用线程池,用较少的线程处理较多的访问,可以提高tomcat处理请求的能力。使用方式: 首先。打开/conf/server.xml,增加转载 2016-05-05 11:31:37 · 425 阅读 · 0 评论 -
HttpClient 发送HTTP请求
HttpClient 发送HTTP请求 需要Apache的三个包: commons-httpclient-3.1.jar commons-codec-1.9.jar commons-logging.jar 没有自己在Apache官网下载,怎么导入就不多说了 代码如下: import java.io.FileOutputStream; imp原创 2016-05-17 12:22:48 · 583 阅读 · 0 评论