持久层是Mybatis,调用接口出现一堆符号错误
错误信息:
method execute finished, outputObject : OutputObject{respCode=500 INTERNAL_SERVER_ERROR, respMessage='关注失败', data=nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression 'remock2 != null AND remock2 !='''. Cause: org.apache.ibatis.ognl.ExpressionSyntaxException: Malformed OGNL expression: remock2 != null AND remock2 !='' [org.apache.ibatis.ognl.ParseException: Encountered " <IDENT> "AND "" at line 1, column 17.
Was expecting one of:
<EOF>
"," ...
"=" ...
"?" ...
"||" ...
"or" ...
"&&" ...
"and" ...
"|" ...
"bor" ...
"^" ...
"xor" ...
"&" ...
"band" ...
"==" ...
"eq" ...
"!=" ...
"neq" ...
"<" ...
"lt" ...
">" ...
"gt" ...
"<=" ...
"lte" ...
">=" ...
"gte" ...
"in" ...
"not" ...
"<<" ...
"shl" ...
">>" ...
"shr" ...
">>>" ...
"ushr" ...
"+" ...
"-" ...
"*" ...
"/" ...
"%" ...
"instanceof" ...
"." ...
"(" ...
"[" ...
<DYNAMIC_SUBSCRIPT> ...
]}
postMan中错误信息提示:
nested exception is org.apache.ibatis.builder.BuilderException:
Error evaluating expression 'remock2 != null AND remock2 !='''. Cause: org.apache.ibatis.ognl.ExpressionSyntaxException:
Malformed OGNL expression: remock2 != null AND remock2 !='' [org.apache.ibatis.ognl.ParseException: Encountered \" <IDENT> \"AND \"\" at line 1, column 17.\r\nWas expecting one of:\r\n
<EOF> \r\n \",\" ...\r\n \"=\" ...\r\n \"?\" ...\r\n \"||\" ...\r\n \"or\" ...\r\n \"&&\" ...\r\n \"and\" ...\r\n \"|\" ...\r\n \"bor\" ...\r\n \"^\" ...\r\n \"xor\" ...\r\n \"&\" ...\r\n \"band\" ...\r\n \"==\" ...\r\n \"eq\" ...\r\n \"!=\" ...\r\n \"neq\" ...\r\n \"<\" ...\r\n \"lt\" ...\r\n \">\" ...\r\n \"gt\" ...\r\n \"<=\" ...\r\n \"lte\" ...\r\n \">=\" ...\r\n \"gte\" ...\r\n \"in\" ...\r\n \"not\" ...\r\n \"<<\" ...\r\n \"shl\" ...\r\n \">>\" ...\r\n \"shr\" ...\r\n \">>>\" ...\r\n \"ushr\" ...\r\n \"+\" ...\r\n \"-\" ...\r\n \"*\" ...\r\n \"/\" ...\r\n \"%\" ...\r\n \"instanceof\" ...\r\n \".\" ...\r\n \"(\" ...\r\n \"[\" ...\r\n <DYNAMIC_SUBSCRIPT> ...\r\n ]
造成的原因是:
在Mybatis中判断条件时使用了大写的