Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e287195b
authored
Apr 24, 2017
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
资源路径包含空格或中文时,资源文件加载不到的问题修复。From github:zhangqunshi
parent
12b4fbd2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/PropertiesUtil.java
xxl-job-admin/src/main/java/com/xxl/job/admin/core/util/PropertiesUtil.java
View file @
e287195b
...
...
@@ -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!"
,
propertyFileNam
e
);
logger
.
error
(
e
.
getMessage
(),
e
);
}
finally
{
if
(
in
!=
null
)
{
try
{
in
.
close
();
}
catch
(
IOException
e
)
{
logger
.
error
(
"close {} error!"
,
propertyFileNam
e
);
logger
.
error
(
e
.
getMessage
(),
e
);
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment