mybatis报shr错误,OGNL表达式问题BuilderException: Error evaluating expression 'shr
使用Mybatis- Plus 3.x版本时,普通的保存数据控制台报异常,大致如下 : Caused by : org . apache . ibatis . builder . BuilderException : Error evaluating expression 'shr ! = ' 'and shr !=null' . Cause : org . apache . ibatis . ognl . ExpressionSyntaxException : Malformed OGNL expression : 'shr ! = ' 'and shr !=null' [ org . apache . ibatis . ognl . ParseException : Encountered " " shr" Was expecting one of : < EOF > "," . . . "=" . . . "?" . . . "||" . . . "or" . . . "&&" . . . "and" . . . "shr" . . . 二、思考 首先想的是自己业务代码以及数据库字段是否存在问题,仔细检查了一遍发现并没有问题。然后仔细观察异常,发现其中有个关键字 shr ,全局搜索了下,正好是实体类字段shr(审核人)。因为是个5年前的项目,所以也没有吐槽数据库命名规范了