Mick.987

相信开源,才是未来的春天!

 

06 2014 档案

通用Hibernate DAO类(包括分页)
摘要:package com.jronline.dao;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;import java.util.List;import org.hibernate.H... 阅读全文

posted @ 2014-06-06 15:44 张朋飞 阅读(408) 评论(0) 推荐(0)

得到属性文件信息
摘要:/** * 得到属性文件信息 * * @param key * @return */ public static String getPropertiesByKey(String key) { InputStream in=null; ... 阅读全文

posted @ 2014-06-06 15:39 张朋飞 阅读(138) 评论(0) 推荐(0)

日期方法大全
摘要:/** * 得到当前的时间 字符串型 */ public static String getNowTime(){ Date time=new Date(); DateFormat format =new SimpleDateFo... 阅读全文

posted @ 2014-06-06 15:36 张朋飞 阅读(264) 评论(0) 推荐(0)

向JSP页面输入信息
摘要:/** * ajax responseTEXT write; * @param request * @param response * @param str */ public static void response(HttpServletReque... 阅读全文

posted @ 2014-06-06 15:35 张朋飞 阅读(294) 评论(0) 推荐(0)

生成订单号 、生成优惠券号 前四位大写字母 后六位数字
摘要:// 生成订单号 public static String setRandomChar() { String str = ""; for (int i = 0; i < 10; i++) { int ch = (int) (10 * (Math... 阅读全文

posted @ 2014-06-06 15:34 张朋飞 阅读(749) 评论(0) 推荐(0)

发邮件 和 excel导出中文文件名
摘要:/** * 发邮件 * @param email * @param subject * @param body * @throws UnsupportedEncodingException */ public static void sendEm... 阅读全文

posted @ 2014-06-06 15:33 张朋飞 阅读(366) 评论(0) 推荐(0)

发送短信
摘要://get 发送短信 public static String send_sms(String mobile_phone, String msg) { String ret_str = ""; BufferedReader rd=null; try {... 阅读全文

posted @ 2014-06-06 15:31 张朋飞 阅读(182) 评论(0) 推荐(0)

打水印 Imagename_biao是水印文件 ImgName是原图
摘要:/** * 打水印 Imagename_biao是水印文件 ImgName是原图 * @param Imagename_biao * @param ImgName */ public static void imgYin(String Imagename_b... 阅读全文

posted @ 2014-06-06 15:30 张朋飞 阅读(396) 评论(0) 推荐(0)

得到汉字字库的集合
摘要:/** * 得到汉字字库的集合 * @return */ public static Map getChinaWordStorage() { BufferedReader bu=null; try { Map ma... 阅读全文

posted @ 2014-06-06 15:29 张朋飞 阅读(246) 评论(0) 推荐(0)

得到中文第一个字的第一个字每
摘要:/** * 得到中文第一个字的第一个字每 * @param first * @return */ public static String getFirstKeyChar(String first) { String result=""; ... 阅读全文

posted @ 2014-06-06 15:28 张朋飞 阅读(200) 评论(0) 推荐(0)

查询短信的短信剩余条数
摘要:/** * 查询短信的短信剩余条数 * @return */ public static String getSmsCount() { String ret_str = ""; BufferedReader rd=null; t... 阅读全文

posted @ 2014-06-06 15:18 张朋飞 阅读(819) 评论(0) 推荐(0)

获取客户端IP
摘要:/*** * 获取客户端IP * @param request * @return */ public static String getIpAddrByRequest(HttpServletRequest request) { String ip... 阅读全文

posted @ 2014-06-06 15:17 张朋飞 阅读(230) 评论(0) 推荐(0)

xfire webServeic 例子
摘要:xfire webServeic 例子,参考网上众多例子,自己写得完成了,给大家分享大家只要按这个目录去建文件就可以了,然后运行,至于其中原理慢慢理会吧环境:myeclipse 10 +xfire1.1.6目录架包:.下面就是文件的添加或修改:web.xml XFireSe... 阅读全文

posted @ 2014-06-06 15:03 张朋飞 阅读(312) 评论(0) 推荐(0)

导航