|
|
@@ -133,6 +133,9 @@ public class DynamicProperties {
|
|
|
FileUtils.copy(defaultPropertyFile, propertyFile);
|
|
|
}
|
|
|
}
|
|
|
+ if(propertyFile.isDirectory()){
|
|
|
+ throw new IOException("并非文件:" + PROPERTY_FILE_NAME);
|
|
|
+ }
|
|
|
long lastModified = propertyFile.lastModified();
|
|
|
// 如果配置文件有修改,就重新加载
|
|
|
if (propertyFileLastModified >= lastModified) {
|