mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
GlobalDbSetting优化默认配置读取规则,优先读取文件而非jar中的文件(issue#900@Github)
This commit is contained in:
@@ -79,6 +79,9 @@ public class FileResource implements Resource, Serializable {
|
||||
|
||||
@Override
|
||||
public InputStream getStream() throws NoResourceException {
|
||||
if (!this.file.exists()) {
|
||||
throw new NoResourceException("File [{}] not exist!", this.file.getAbsolutePath());
|
||||
}
|
||||
return FileUtil.getInputStream(this.file);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user