diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/ConfigUtils.java b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/ConfigUtils.java index f112ec2576c..436cf8f42eb 100644 --- a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/ConfigUtils.java +++ b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/ConfigUtils.java @@ -217,7 +217,8 @@ public static Properties loadProperties(String fileName, boolean allowMultiFile) */ public static Properties loadProperties(String fileName, boolean allowMultiFile, boolean optional) { Properties properties = new Properties(); - if (fileName.startsWith("/")) { + // add scene judgement in windows environment Fix 2557 + if (fileName.startsWith("/") || fileName.matches("^[A-z]:\\\\\\S+$")) { try { FileInputStream input = new FileInputStream(fileName); try { @@ -328,4 +329,4 @@ public static int getServerShutdownTimeout() { return timeout; } -} \ No newline at end of file +}