org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Error evaluating expression ‘companycode != null and companycode !=‘‘ ‘. Cause: org.apache.ibatis.ognl.ExpressionSyntaxException: Malformed OGNL expression: companycode != null and companycode !=‘‘ [org.apache.ibatis.ognl.TokenMgrError: Lexical error at line 1, column 24. Encountered: "\u3000" (12288), after : ""]
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73)
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:365)
错误原因: ‘companycode != null and companycode !=‘‘ ‘. //and后面是中文全角空格(输入法的月亮和太阳 半角/全角)
应把中文全角改为英文半角即可
时间: 2024-10-21 05:51:05