上一页 1 ··· 7 8 9 10 11
摘要: 下面的例子演示如何使用BufferedInputStream类读取文本文件内容。首先需要声明一个byte数组作为buffer,然后循环将文本内容循环读入到buffer中,并将buffer转换为字符串,打印到控制台。/**** @author outofmemory.cn*/public class ... 阅读全文
posted @ 2014-08-25 17:21 Kevin_Zhou_9 阅读(3279) 评论(0) 推荐(0) 编辑
摘要: BLOB数据库类型,byte[]可以直接保存到数据库 blob 转换为byte[] public byte[] blobToByte(Blob blob) throws Exception { byte[] bytes = null; try { InputStream in=blob.getBin 阅读全文
posted @ 2014-08-12 17:00 Kevin_Zhou_9 阅读(5306) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2014-08-04 17:38 Kevin_Zhou_9 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 最近用DB2,数据库之间的差异还是很大的,好多函数都不一样1.去空格*DB2中:Ltrim()是去左边空格,rtrim()是去右边空格。*informix中:trim()就是去空格。用法:例:string a=" abc "; *DB2中:Ltrim(a)="abc ";rtrim(a)=" abc... 阅读全文
posted @ 2014-06-25 16:56 Kevin_Zhou_9 阅读(161) 评论(0) 推荐(0) 编辑
摘要: //生成隨機數值方法一:/***生成隨機碼*pwd_len 密碼長度*/public static String genRandomNum(int pwd_len){//35是因為數組是從0開始的,26個字母+10個數字 final int maxNum=36; int i;//... 阅读全文
posted @ 2014-06-25 15:18 Kevin_Zhou_9 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 关于Spring事务管理的详解,参考http://www.cnblogs.com/rushoooooo/archive/2011/08/28/2155960.html, 阅读全文
posted @ 2014-05-30 15:52 Kevin_Zhou_9 阅读(155) 评论(0) 推荐(0) 编辑
摘要: lee/MyTest.hbm.xml org.hibernate.dialect. MySQLDialect update 一旦在Spring的IoC容器中配置了SessionFactory Bean,它将随应用的启动而加载,并可以充分利用IoC容器的功... 阅读全文
posted @ 2014-05-30 14:45 Kevin_Zhou_9 阅读(250) 评论(0) 推荐(0) 编辑
摘要: 問題描述: 重启vm的时候会出现这样的错误,是因为你挂起模式的时候强制性重启或关了电脑。 NOT_IMPLEMENTED d:/build/ob/bora-1031769/bora/devices/vide/pciVide.c:728 A log file is available... 阅读全文
posted @ 2014-05-22 09:46 Kevin_Zhou_9 阅读(296) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><title>jQuery弹出层效果</title><script src="/uploads/common/js/jquery-1.4.2.min.js" type="t 阅读全文
posted @ 2013-11-05 18:29 Kevin_Zhou_9 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11