- 博客(12)
- 收藏
- 关注
转载 eclipse 国内下载镜像地址
eclipse 的服务器在国外,下载时会较慢,可用国内镜像地址http://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/
2022-01-30 14:02:27
5199
转载 java.lang.OutOfMemoryError: Java heap space 内存溢出
处理方法是设置TOMCAT的内存大小Eclipse下解决办法:Window–>Preference–>JAVA–>Installed JREs -->Edit–>Default VM arguments下填上:-Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=600m在这里插入图片描述...
2021-09-06 13:31:55
180
原创 判断String存在,号如存在以,号分组
public static int count(String text,String sub){ //字段,符号int count =0, start =0;while((start=text.indexOf(sub,start))>=0){start += sub.length();count ++;}return count;}int comma = count(fengZhuangSpecials ,",");if(comma>0){String[] split =
2021-05-21 13:09:36
221
转载 https://blog.youkuaiyun.com/weixin_35886269/article/details/114870016
https://blog.youkuaiyun.com/weixin_35886269/article/details/114870016
2021-05-18 14:07:01
4252
原创 比较两个list内容取出不同
//比较两个list public static List getDiffrent(List list1, List list2){ List diff = new ArrayList(); String temp1 = list1.toString ().replaceAll ("[\[\]]", “,”).replaceAll ("\s+", “”); &nb
2021-04-20 16:10:36
1124
原创 解压路径下文件返回list
//解压目标路径下文件 public List unpacktheTXT(String path ){ List resultList = new ArrayList(); StringBuilder result = new StringBuilder(); try { File file = new F
2021-04-20 16:08:20
142
原创 对List集合进行排序
升序Collections.sort(kaigongdanList, new Comparator() {@Overridepublic int compare(kaigongdan o1, kaigongdan o2) {if (o1.getStepId() > o2.getStepId()) {return 1;}if (o1.getStepId() == o2.getStepId()) {return 0;}return -1;}});降序Collections.so
2021-04-20 16:06:17
126
原创 java利用C盘自带解压软件进行压缩包解压
public String decompression(String tat ,String zipPathName){//tat 是压缩文件路径,zipPathName 是解压后保存路径Runtime runtime = Runtime.getRuntime();String textName = “”;File testFile = new File(zipPathName);String abnormal = “”;if(!testFile .exists()) {new File(zi
2021-03-10 13:44:19
201
原创 爬虫时跳过证书
public class SSLHelper {public static String USER_AGENT = “Mozilla/4.0 (compatible; MSIE 9.0; Windows NT 5.0)”;static public void init() {try {SSLContext context = SSLContext.getInstance(“TLSv1.2”);context.init(null, new X509TrustManager[]{new X509Tru
2021-02-26 09:56:18
299
原创 运用Jsoup写java爬虫下载文档
private static Document getDoc(String url) {Document doc = null;int loopCount = 0;while (true) {try {doc = Jsoup.connect(url).timeout(10000000).ignoreContentType(true).get();break;} catch (Exception e) {e.printStackTrace();}if (loopCount++ > 1
2021-02-26 09:48:15
219
转载 JSF 2.0教程
JSF 2.0教程JavaServer Faces(JSF)2.0是一个MVC Web框架,其重点是简化Java Web应用程序的构建用户界面(带有100多个现成的UI标签),并使可重用的UI组件易于实现。 与JSF 1.x不同,在JSF 2.0中,几乎所有内容都在faces-config.xml声明,允许您使用批注来声明导航,托管Bean或CDI Bean,这使您的开发更加轻松和快捷。 在本教程中,它提供了有关使用JavaServer Faces(JSF)2.0框架的许多分步示例和说明。 快乐学习JSF
2020-08-26 14:14:26
726
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人