07 2014 档案
摘要: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...
阅读全文

浙公网安备 33010602011771号