摘要:
以下内容出自http://blog.csdn.net/joeblackzqq/article/details/67891561,新浪的IP地址查询接口:http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js2,新浪多地域测试方法: h... 阅读全文
摘要:
spring mvc:spring提供的一套简洁mvc web框架 参考http://blog.csdn.net/wangpeng047/article/details/6983027http://blog.csdn.net/javabenface/article/details/7405677(... 阅读全文
摘要:
若在Hibernate的session中同时有两个相同id的同类型对象,修改会失败,报错:a different object with the same identifier value was already解决方案:使用merge()如下情景:User u = dao.getUser(...)... 阅读全文
摘要:
java transient变量修饰符,修饰不用序列化属性如:class XXX implement serializerable{ transient Map fieldA ;//可能的情况为:存有好多数据,但只是执行某操作的时候用,执行完了就不用了 }; 阅读全文
摘要:
有一次用了list = xxList.subList(1,xxList.size());之后出了一个让我摸不着头脑的错,具体是什么样的错,我忘了, 使用subList后源list中没有在1到xxList.size()区间的元素并没有被移除而是xxList偏移了,每次读取都加上了偏移,截取后的lis... 阅读全文
摘要:
freemarker宏的使用有默认值的参数必须排在后面ssss 阅读全文
摘要:
用处:多线程编程中,限制线程的总数量。使用方式:Runnable runnable = 一个实现了Runnable接口的对象 ;ProductThread pt = ThreadProducer.instance().getThread(runnable) ;pt.start() ;ProductT... 阅读全文
摘要:
1,若方法传入的对象参数为空,则在方法中改变参数并不会改变声明的对象public void setList(List list){ list = new ArrayList() ; } @Test public void t4(){ List ... 阅读全文