- 博客(7)
- 收藏
- 关注
转载 ip正则表达式
//192.168.0.1 正则String regex = "((?:(?:25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d)))\\.){3}(?:25[0-5]|2[0-4]\\d|((1\\d{2})|([1-9]?\\d))))";//192.168.0.*正則String regex1 = "((?:(?:25[0-5]|2[0-4]\\d|((...
2019-03-04 16:12:00 104
转载 spring代理
/** * 目标类接口 * @author Administrator */ public interface UserService { public void pay(); } public class UserServiceImpl implements UserService { @Override public void pa...
2018-09-19 21:26:00 96
转载 处理全站乱码的过滤器
package com.tedu.jt.filter; import java.io.IOException; import java.util.Map; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import ...
2018-08-05 20:28:00 109
转载 排序算法
/** * 二分查找法 */ public static void dichotomySort(int[] a,int b){ Arrays.sort(a); System.out.println(Arrays.toString(a)); int c = 0; int d = a.length-1; while(d>=c){ ...
2018-07-25 20:18:00 83
转载 获取某个类型文件
package File; import java.io.File; import java.io.FilenameFilter; public class FileNameSelector implements FilenameFilter { String extension = "."; public FileNameSelector(St...
2018-06-28 19:30:00 143
转载 java 文件加密
System.out.println("文件:"); String s = new Scanner(System.in).nextLine(); File file = new File(s); if(! file.isFile()) { System.out.println("不是文件"); return; } System.out...
2018-06-28 18:34:00 86
转载 爬取图片路径然后用文件流复制到本地
1 @Test 2 public void loadImage() throws IOException{ 3 String url = "https://3w.huanqiu.com/a/a-XDI128434DD0215D7A70F8?agt=8/"; 4 Connection con = Jsoup.connect(url); 5 Document docum...
2018-06-07 20:15:00 198
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人