摘要:
下面的代码是用配置文件连接数据库时的代码:package com.xinsearch;import java.io.FileInputStream;import java.io.InputStream;import java.sql.*;import java.util.Properties;public class ConnectionTools { static Connection conn=null; static Properties pps=new Properties(); public static Connection getConn() { try { InputSt... 阅读全文
posted @ 2013-01-02 13:44
杨桃
阅读(335)
评论(0)
推荐(0)
摘要:
package com.xinsearch;public class Rule { public String changeWWW(String url) { String nowUrl = null; try { if (url.contains("http://item.taobao.com")) { url = url.replace("http://item.taobao.com", "http://a.m.taobao.com"); nowUrl = url.replace("tem.htm?id=", 阅读全文
posted @ 2013-01-02 13:37
杨桃
阅读(2810)
评论(0)
推荐(0)

浙公网安备 33010602011771号