<if test="param != null and param != ‘hello‘.toString()" >
或者用""双引号
<if test=‘param != null and param != "hello" ‘ >
mybatis中条件表达式if的test为字符串时值比较
原文:http://blog.51cto.com/jtech/2345879