2013年3月7日
摘要: MySQL数据库中有两个表,一个student,一个teacher其中student表结构如下teacher表如下有存储过程checkAllBEGINselect * from teacher;SELECT * FROM student;ENDJava代码如下 1 public static Map<String,Object> getAll(){ 2 Connection conn=null; 3 CallableStatement cs=null; 4 ResultSet rs=null; 5 Map<String,O... 阅读全文
posted @ 2013-03-07 22:20 l_veay 阅读(6659) 评论(1) 推荐(0) 编辑
2013年2月27日
摘要: base64编码 1 /** 2 * 3 * @Title: encodeBase64 4 * @Description: 对数据进行base64编码 5 * @param value 需要编码的数据 6 * @param encodeType 需要编码的类型,如UTF-8,gb2312等 7 * @return String 编码后的字符串 8 */ 9 public static String encodeBase64(String value,String encodeType) {10 ... 阅读全文
posted @ 2013-02-27 13:43 l_veay 阅读(633) 评论(0) 推荐(0) 编辑