mybatis异常之org.apache.ibatis.ognl.ParseException: Encountered " "AND ""

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression ' VIP == 0 AND isVipOpen!=0 '. Cause: org.apache.ibatis.ognl.ExpressionSyntaxException: Malformed OGNL expression:  VIP == 0 AND isVipOpen!=0  [org.apache.ibatis.ognl.ParseException: Encountered " "AND "" at line 1, column 11.
Was expecting one of:
     
    "," ...
    "=" ...
    "?" ...
    "||" ...
    "or" ...
    "&&" ...
    "and" ...
    "|" ...
    "bor" ...
    "^" ...
    "xor" ...
    "&" ...
    "band" ...
    "==" ...
    "eq" ...
    "!=" ...
    "neq" ...
    "<" ...
    "lt" ...
    ">" ...
    "gt" ...
    "<=" ...
    "lte" ...
    ">=" ...
    "gte" ...
    "in" ...
    "not" ...
    "<<" ...
    "shl" ...
    ">>" ...
    "shr" ...
    ">>>" ...
    "ushr" ...
    "+" ...
    "-" ...
    "*" ...
    "/" ...
    "%" ...
    "instanceof" ...
    "." ...
    "(" ...
    "[" ...
    ...
    ]

test中AND改成小写就OK了

mybatis异常之org.apache.ibatis.ognl.ParseException: Encountered

你可能感兴趣的:(mybatis异常之org.apache.ibatis.ognl.ParseException: Encountered " "AND "")