mybatis查询mysql数据库tinyint(1)类型返回值变为boolean类型 两种解决方法: 1、修改tinyint类型的长度,当长度变为4时结果正常。 2、修改SQL语句,字段乘以1。例:status*1 as status。