java学习之路
文章平均质量分 77
faulwareyy
悲催的程序猿
展开
-
java读写clob
从数据库中读取clob值 public String clob2String(Clob clob) { StringBuffer retValue=new StringBuffer(); if(clob!=null) { try { Reader reader=clob.getCharacterStream(); BufferedReader...原创 2011-09-06 19:26:24 · 150 阅读 · 0 评论 -
对有序list分组
近来要对一个有序的list进行分组,由于我是初学者,以前没有编程经验,所以出了许多bug。下面分享一下。 List里面放着author,author有属性id、name和writeCount三个属性,分别表示作者id、昵称和编辑文章数量。对于按照id排序的list,统计每个作者编辑了多少文章。 public class author { private int...原创 2011-08-06 14:41:45 · 233 阅读 · 0 评论 -
一台电脑安装多个tomcat
windows下面,一台电脑安装多个tomcat。我安装了2个tomcat 6.0,下载地址http://tomcat.apache.org/download-60.cgi。选择6.0.32目录下的binary distributions下的core 我电脑是32未windows系统,选择了32位windows zip文件。 1).解压缩到2个目录,对于每个tomcat 6.0目录,打开...原创 2011-08-09 23:02:17 · 117 阅读 · 0 评论