From 7a593ffaeedeb4ca63de2bbf56819957c4ff1cbf Mon Sep 17 00:00:00 2001 From: nkorange Date: Wed, 5 Jun 2019 11:05:56 +0800 Subject: [PATCH] Fix bug --- .../main/java/com/alibaba/nacos/core/utils/SystemUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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";