Mybatis 查询报错java.sql.SQLException: 无效的列类型: 1111 出现这个问题不要慌,根据报错日志定位到出错的查询语句,由于粗心,没有将查询条件添加"判空"条件 将查询语句添加判空,就好好 <if test="type !=null and type !=''"> and type=#{type}</if>