要构造Boolean 用new Boolean("true");Boolean.getBoolean()方法的参数是system property。

解决方案 »

  1.   

    Returns true if and only if the system property named by the argument exists and is equal to the string "true". (Beginning with version 1.0.2 of the JavaTM platform, the test of this string is case insensitive.) A system property is accessible through getProperty, a method defined by the System class. 
    If there is no property with the specified name, or if the specified name is empty or null, then false is returned.