摘要:package com.jronline.dao;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;import java.util.List;import org.hibernate.H...
阅读全文
摘要:/** * 得到属性文件信息 * * @param key * @return */ public static String getPropertiesByKey(String key) { InputStream in=null; ...
阅读全文
摘要:/** * 得到当前的时间 字符串型 */ public static String getNowTime(){ Date time=new Date(); DateFormat format =new SimpleDateFo...
阅读全文
摘要:/** * ajax responseTEXT write; * @param request * @param response * @param str */ public static void response(HttpServletReque...
阅读全文
摘要:// 生成订单号 public static String setRandomChar() { String str = ""; for (int i = 0; i < 10; i++) { int ch = (int) (10 * (Math...
阅读全文
摘要:/** * 发邮件 * @param email * @param subject * @param body * @throws UnsupportedEncodingException */ public static void sendEm...
阅读全文
摘要://get 发送短信 public static String send_sms(String mobile_phone, String msg) { String ret_str = ""; BufferedReader rd=null; try {...
阅读全文
摘要:/** * 打水印 Imagename_biao是水印文件 ImgName是原图 * @param Imagename_biao * @param ImgName */ public static void imgYin(String Imagename_b...
阅读全文
摘要:/** * 得到汉字字库的集合 * @return */ public static Map getChinaWordStorage() { BufferedReader bu=null; try { Map ma...
阅读全文
摘要:/** * 得到中文第一个字的第一个字每 * @param first * @return */ public static String getFirstKeyChar(String first) { String result=""; ...
阅读全文
摘要:/** * 查询短信的短信剩余条数 * @return */ public static String getSmsCount() { String ret_str = ""; BufferedReader rd=null; t...
阅读全文
摘要:/*** * 获取客户端IP * @param request * @return */ public static String getIpAddrByRequest(HttpServletRequest request) { String ip...
阅读全文
摘要:xfire webServeic 例子,参考网上众多例子,自己写得完成了,给大家分享大家只要按这个目录去建文件就可以了,然后运行,至于其中原理慢慢理会吧环境:myeclipse 10 +xfire1.1.6目录架包:.下面就是文件的添加或修改:web.xml XFireSe...
阅读全文