diff --git a/core/src/main/java/com/alibaba/nacos/core/utils/SystemUtils.java b/core/src/main/java/com/alibaba/nacos/core/utils/SystemUtils.java index ce50f9a78..6eec1e88e 100644 --- a/core/src/main/java/com/alibaba/nacos/core/utils/SystemUtils.java +++ b/core/src/main/java/com/alibaba/nacos/core/utils/SystemUtils.java @@ -42,8 +42,7 @@ public class SystemUtils { /** * Standalone mode or not */ - public static boolean STANDALONE_MODE = Boolean.parseBoolean( - System.getenv(STANDALONE_MODE_PROPERTY_NAME)); + public static boolean STANDALONE_MODE = Boolean.getBoolean(STANDALONE_MODE_PROPERTY_NAME); public static final String STANDALONE_MODE_ALONE = "standalone"; public static final String STANDALONE_MODE_CLUSTER = "cluster";