mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
change register to system properties option, default false
This commit is contained in:
@@ -100,11 +100,11 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
|
||||
public static boolean isRegisterToSystemProperty() {
|
||||
String value = System.getProperty(SYS_PROP_REGISTER_SYS_PROPERTY);
|
||||
|
||||
if ("false".equals(value)) {
|
||||
return false;
|
||||
if ("true".equals(value)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
||||
Reference in New Issue
Block a user