Was expecting one of:异常处理并解决

今天在写SpringMvc中出现这个异常,异常如下:

Was expecting one of:
     
    "," ...
    "=" ...
    "?" ...
    "||" ...
    "or" ...
    "&&" ...
    "and" ...
    "|" ...
    "bor" ...
    "^" ...
    "xor" ...
    "&" ...
    "band" ...
    "==" ...
    "eq" ...
    "!=" ...
    "neq" ...
    "<" ...
    "lt" ...
    ">" ...
    "gt" ...
    "<=" ...
    "lte" ...
    ">=" ...
    "gte" ...
    "in" ...
    "not" ...
    "<<" ...
    "shl" ...
    ">>" ...
    "shr" ...
    ">>>" ...
    "ushr" ...
    "+" ...
    "-" ...
    "*" ...
    "/" ...
    "%" ...
    "instanceof" ...
    "." ...
    "(" ...
    "[" ...
     ...
    ]] with root cause

org.apache.ibatis.ognl.ParseException: Encountered "  "HaCustom "" at line 1, column 26.
Was expecting one of:
     
    "," ...
    "=" ...
    "?" ...
    "||" ...
    "or" ...
    "&&" ...
    "and" ...
    "|" ...
    "bor" ...
    "^" ...
    "xor" ...
    "&" ...
    "band" ...
    "==" ...
    "eq" ...
    "!=" ...
    "neq" ...
    "<" ...
    "lt" ...
    ">" ...
    "gt" ...
    "<=" ...
    "lte" ...
    ">=" ...
    "gte" ...
    "in" ...
    "not" ...
    "<<" ...
    "shl" ...
    ">>" ...
    "shr" ...
    ">>>" ...
    "ushr" ...
    "+" ...
    "-" ...
    "*" ...
    "/" ...
    "%" ...
    "instanceof" ...
    "." ...
    "(" ...
    "[" ...
     ...

问题出在于*.xml中
问题解决,有可能xml中判断有中文
更重要的是你的判断语句中

 //判断这里 注意看and并且and后面的字段
 
                AND POSITION('${HaBillrecords.optType}'  in b.operation)>0
            

最后问题解决,总结要细心

如果有老鸟看出博文中写的错误,请赐教,如果问题没有解决,欢迎评论留言

你可能感兴趣的:(异常bug)