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" ' >
加密:为你的长字符串提供最高级别的保护!!!
一般情况下String字符串和数组都不是基本数据类型,它们被当作类来处理,也就是我们所说的引用数据类型,因此我们比较字符串的时候,需要使用str.equals(str2)而不是直接使用==进行比较。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M