关键字导致mybatis的OGNL表达式异常

在做一个演示项目时,为了简便,我把表中审核人字段用shr。结果导致org.apache.ibatis.builder.BuilderException: Error evaluating expression 'shr != null'。这是因为shr字段与mybatis的OGNL表达式发生冲突

mybatis的OGNL包含一下字符

",",
"=",
"?",
"||",
"or",
"&&",
"and",
"|",
"bor",
"^",
"xor",
"&",
"band",
"==",
"eq",
"!=",
"neq",
"<",
"lt",
">",
"gt",
"<=",
"lte",
">=",
"gte",
"in",
"not",
"<<",
"shl",
">>",
"shr",
">>>",
"ushr",
"+",
"-",
"*",
"/",
"%",
"instanceof",
".",
"(",
"[",

作者:冯亮
         
能力有限,水平一般。如有错误,欢迎指正
原文地址:https://www.cnblogs.com/fengliang/p/14440028.html