会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tonggc1668
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
59
60
61
62
63
64
65
66
67
···
72
下一页
2017年9月9日
注入抽象类的子类
摘要: 实际注入的是抽象类的子类
阅读全文
posted @ 2017-09-09 12:29 tonggc1668
阅读(459)
评论(0)
推荐(0)
2017年9月8日
单例模式
摘要: https://blog.csdn.net/csdnliuxin123524/article/details/80032262 public class InnerSingleton { private static class Singleton{ private static InnerSing
阅读全文
posted @ 2017-09-08 14:39 tonggc1668
阅读(77)
评论(0)
推荐(0)
2017年9月7日
TaskFactory单例模式利用xml
摘要: applicationContext-common-threadpool.xml
阅读全文
posted @ 2017-09-07 10:21 tonggc1668
阅读(126)
评论(0)
推荐(0)
2017年9月5日
ReflectionUtil
摘要: import java.lang.reflect.Method; @SuppressWarnings("rawtypes") public class ReflectionUtil { @SuppressWarnings("unchecked") public static Object invokeStaticMethod(String className, String ...
阅读全文
posted @ 2017-09-05 10:16 tonggc1668
阅读(159)
评论(0)
推荐(0)
2017年9月4日
HttpUtils
摘要: import java.io.IOException; import java.net.URLEncoder; import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.Map.Entry; import java.util.Set; import org.apache.h...
阅读全文
posted @ 2017-09-04 17:20 tonggc1668
阅读(144)
评论(0)
推荐(0)
dom4j解析XML
摘要: import java.io.ByteArrayInputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.codec.binary.Base64; import org.apac...
阅读全文
posted @ 2017-09-04 15:51 tonggc1668
阅读(139)
评论(0)
推荐(0)
HttpClientHelper
摘要: public static String invoke(String jsondata, String url, String appsecret, String account, String version) throws Exception { byte[] dataAssembleByte = RSAUtils.encryptByPublicKey(jsondat...
阅读全文
posted @ 2017-09-04 10:35 tonggc1668
阅读(208)
评论(0)
推荐(0)
2017年8月30日
正则表达式--反斜杠
摘要: import java.util.regex.Matcher; import java.util.regex.Pattern; String s = "c:\\test.txt"; //String regEx = ".+[\\\\]{0,}.+$"; String regEx = "\\\\";
阅读全文
posted @ 2017-08-30 10:51 tonggc1668
阅读(196)
评论(0)
推荐(0)
2017年8月19日
快速排序
摘要: [2, 3, 4, 5, 6, 8]
阅读全文
posted @ 2017-08-19 21:00 tonggc1668
阅读(109)
评论(0)
推荐(0)
递归读取文件夹下的文件
摘要: public class FileRecursive { public static void main(String[] args) { File file=new File("D:/"); testFile(file); } public static void testFile(File file){ if (file.isDirectory()) { ...
阅读全文
posted @ 2017-08-19 18:00 tonggc1668
阅读(178)
评论(0)
推荐(0)
上一页
1
···
59
60
61
62
63
64
65
66
67
···
72
下一页
公告