动态读取config配置文件, 否则配置文件修改之后不能读取更新部分报错,
try {
InputStream in =new FileInputStream("ip.config");//这里配置文件地址写成全路径就会报错,应该只写文件名
p.load(in);
in.close();
if(p.containsKey("fuck")){
this.url = p.getProperty("fuck");
c = this.url.split(",");
}
} catch (IOException ex) {
ex.printStackTrace();
}
return c;