1、在你的项目中引入hutool的jar包
3、Double aDouble = BooleanUtil.toDoubleObj(b);//将true转换为数字
5、将布尔类型改为false查看得到的结果