完整异常: Caused by: org.apache.ibatis.builder.BuilderException: Error evaluating expression 'developerType ! ='''. Cause: org.apache.ibatis.ognl.ExpressionSyntaxException: Malformed OGNL expression: developerType ! = ''[org.apache.ibatis.ognl.ParseException: Encountered"!" at line 1, column 15.
- Was expecting one of:
- <EOF>
- "," ...
- "=" ...
- "?" ...
- "||" ...
- "or" ...
- "&&" ...
- "and" ...
- "|" ...
- "bor" ...
- "^" ...
- "xor" ...
- "&" ...
- "band" ...
- "==" ...
- "eq" ...
- "!=" ...
- "neq" ...
- "<" ...
- "lt" ...
- ">" ...
- "gt" ...
- "<=" ...
- "lte" ...
- ">=" ...
- "gte" ...
- "in" ...
- "not" ...
- "<<" ...
- "shl" ...
- ">>" ...
- "shr" ...
- ">>>" ...
- "ushr" ...
- "+" ...
- "-" ...
- "*" ...
- "/" ...
- "%" ...
- "instanceof" ...
- "." ...
- "(" ...
- "[" ...
- <DYNAMIC_SUBSCRIPT> ...
- ]
这种问题出现在 字段 != null and 字段 != ''错误写为了 字段 != null and !='', 缺少 and 后面的字段.
[mybatis 错误] - sql 出错 org.apache.ibatis.ognl.ParseException: Encountered "!" at line 1, column 15. Was expecting one of:
来源: http://www.bubuko.com/infodetail-2961026.html