This commit is contained in:
dupengcheng 2019-05-24 13:18:47 +08:00
parent 29dc221ee0
commit 67741c6712

View File

@ -42,7 +42,8 @@ public class SystemUtils {
/**
* Standalone mode or not
*/
public static boolean STANDALONE_MODE = Boolean.getBoolean(STANDALONE_MODE_PROPERTY_NAME);
public static boolean STANDALONE_MODE = Boolean.parseBoolean(
System.getenv(STANDALONE_MODE_PROPERTY_NAME));
public static final String STANDALONE_MODE_ALONE = "standalone";
public static final String STANDALONE_MODE_CLUSTER = "cluster";