package com.seo.worker.quartz;
import java.util.List;
import org.apache.log4j.Logger;
import com.seo.bean.Proxy;
import com.seo.common.dao.impl.BaseDAO;
public class GetMysqlBySplit {
static Logger logger = Logger.getLogger(GetMysqlBySplit.class);
public static void main(String[] args) {
BaseDAO dao=new BaseDAO();
List<Object> list=dao.loadList("from Proxy");
for(Object o:list)
{
Proxy p=(Proxy)o;
System.out.println(p.getIp()+":"+p.getPort());
}
}
}
里面采用了hibernate方法