提交 e287195b 编写于 作者: X xueli.xue

资源路径包含空格或中文时,资源文件加载不到的问题修复。From github:zhangqunshi

上级 12b4fbd2
......@@ -32,13 +32,13 @@ public class PropertiesUtil {
in = new InputStreamReader(new FileInputStream(url.getPath()), "UTF-8");
prop.load(in);
} catch (IOException e) {
logger.error("load {} error!", propertyFileName);
logger.error(e.getMessage(), e);
} finally {
if (in != null) {
try {
in.close();
} catch (IOException e) {
logger.error("close {} error!", propertyFileName);
logger.error(e.getMessage(), e);
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册