摘要: 以下内容出自http://blog.csdn.net/joeblackzqq/article/details/67891561,新浪的IP地址查询接口:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js2,新浪多地域测试方法: h... 阅读全文
posted @ 2014-10-16 09:20 行-云 阅读(975) 评论(0) 推荐(0) 编辑
摘要: spring mvc:spring提供的一套简洁mvc web框架 参考http://blog.csdn.net/wangpeng047/article/details/6983027http://blog.csdn.net/javabenface/article/details/7405677(... 阅读全文
posted @ 2014-08-30 14:26 行-云 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 若在Hibernate的session中同时有两个相同id的同类型对象,修改会失败,报错:a different object with the same identifier value was already解决方案:使用merge()如下情景:User u = dao.getUser(...)... 阅读全文
posted @ 2014-08-24 22:15 行-云 阅读(321) 评论(0) 推荐(0) 编辑
摘要: java transient变量修饰符,修饰不用序列化属性如:class XXX implement serializerable{ transient Map fieldA ;//可能的情况为:存有好多数据,但只是执行某操作的时候用,执行完了就不用了 }; 阅读全文
posted @ 2014-07-25 21:42 行-云 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 有一次用了list = xxList.subList(1,xxList.size());之后出了一个让我摸不着头脑的错,具体是什么样的错,我忘了, 使用subList后源list中没有在1到xxList.size()区间的元素并没有被移除而是xxList偏移了,每次读取都加上了偏移,截取后的lis... 阅读全文
posted @ 2014-07-21 18:31 行-云 阅读(647) 评论(0) 推荐(0) 编辑
摘要: freemarker宏的使用有默认值的参数必须排在后面ssss 阅读全文
posted @ 2014-07-21 17:10 行-云 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 用处:多线程编程中,限制线程的总数量。使用方式:Runnable runnable = 一个实现了Runnable接口的对象 ;ProductThread pt = ThreadProducer.instance().getThread(runnable) ;pt.start() ;ProductT... 阅读全文
posted @ 2014-07-11 15:15 行-云 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1,若方法传入的对象参数为空,则在方法中改变参数并不会改变声明的对象public void setList(List list){ list = new ArrayList() ; } @Test public void t4(){ List ... 阅读全文
posted @ 2014-04-29 20:04 行-云 阅读(112) 评论(0) 推荐(0) 编辑
摘要: /** * 让图片保持在一个区域内所需缩放的倍数 * @param rect 区域大小 * @param imageSize 图片大小 * @param stretch 图片本来就在区域大小内的话,是否使图片拉伸 */ public static flo... 阅读全文
posted @ 2014-04-20 12:10 行-云 阅读(378) 评论(0) 推荐(0) 编辑
摘要: /** * 图片缩放,返回缩放后的图片 * @param src 原图 * @param scale 缩放倍数 */ public static Bitmap scaleImage(Bitmap src, float scale){ int w =... 阅读全文
posted @ 2014-04-20 12:04 行-云 阅读(136) 评论(0) 推荐(0) 编辑