change register to system properties option, default false

This commit is contained in:
wenshao
2012-08-31 06:53:34 +08:00
parent 0f77080b36
commit fe0f67bf45
3 changed files with 17 additions and 5 deletions
@@ -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")