检查字符串是否为布尔值
static bool isBool(String s) { if (ObjectUtils.isNull(s)) { return false; } return (s == 'true' || s == 'false'); }