mybatis中的配置文件里写含有
<if test=""></if>的sql语句时
<if test=" 字段名!=null "></if>与 <if test=" 字段名!= null and test=" 字段名!= '' "></if>的区别与用法。
就可以,上面的是验证字符串不为null ,下面验证不仅不能为null,也不能为空字符串