/**
* 获取jar 中的文件
* @param fileName
* @return
*/
private File getJarDocFIle(String fileName){
InputStream stream = getClass().getClassLoader().getResourceAsStream("doc/"+fileName);
File targetFile = new File(fileName);
try {
FileUtils.copyInputStreamToFile(stream, targetFile);
} catch (IOException e) {
e.printStackTrace();
}
return targetFile;
}
版权声明:本文为weixin_35928208原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。