mybatis 使用<if test=" "> 遇到的坑 mybatis中<if test=" !null "></if>或者<if test=" null "></if>会执行<if>中的代码,如下图 建议使用boolean类型,因为默认值为false,Boolean类型默认值为null。 相关文章: