private FileInputStream readOutJarFile (String filename) throws Exception{
//取得jar文件所在目录
String str = this.getClass().getProtectionDomain().getCodeSource().getLocation().getFile();
str = str.substring(0, str.lastIndexOf("/"));
//读取配置文件
str = str + "/" + filename;
return new FileInputStream(str);
}
//取得jar文件所在目录
String str = this.getClass().getProtectionDomain().getCodeSource().getLocation().getFile();
str = str.substring(0, str.lastIndexOf("/"));
//读取配置文件
str = str + "/" + filename;
return new FileInputStream(str);
}