摘要:
下面的代码是用配置文件连接数据库时的代码: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... 阅读全文
摘要:
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=", 阅读全文