mybatis中条件表达式字符串用''单引号不能直接比较,需要加toString()
<if test="param != null and param != 'hello'.toString()" >
或者用""双引号
<if test='param != null and param != "hello" ' >
mybatis中条件表达式字符串用''单引号不能直接比较,需要加toString()
<if test="param != null and param != 'hello'.toString()" >
或者用""双引号
<if test='param != null and param != "hello" ' >
上一篇:Java的值传递和引用传递
Java使用递归实现全排列的代码:下一篇
精彩评论