1、 Questions
Malformed ognl expression: name! = null and name! = ‘
report an error;
malformed means abnormal;
2、 Solutions and reasons
It turned out to be* Mapper.xml In the document:
<if test ="userId ! null">
The equals sign is missing; the SQL in the automatically generated mybatis file is missing an equals sign
<if test ="userId != null">
Moreover, there should be no space between exclamation mark and equal sign;
Read More:
- ognl.MethodFailedException: Method “setId” failed for object Itemer/org.springframework.orm.hibernat
- org.apache.ibatis.type.TypeException: Error setting non null for parameter #4 with JdbcType null
- SqlNullValueException: Data is Null. This method or property cannot be called on Null values.
- Crypto JS decrypts malformed UTF-8 data
- Error:null value in entry: incrementalFolder=null
- yum install/update error: sqlite3.DatabaseError: database disk image is malformed
- Solve the problem of postgre error #22p02 malformed array literal
- Gson Parsing exceptions: Use JsonReader.setLenient(true) to accept malformed JSON at line 1 column 1 path $
- Error evaluating expression
- MalformedJsonException:Use JsonReader.setLenient(true) to accept malformed JSON at line 3 colum
- Expected primary expression before ‘unsigned’ solution
- Solve the problem that vscode cannot convert the easy less plug-in to the less expression value
- JAVA lambda Syntax error on tokens, Expression expected instead
- [Solved] Unity Error: Assertion failed on expression: ‘m_ErrorCode == MDB_MAP_RESIZED
- ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked.
- Error Code: 1055. Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated
- C code compilation_ Error: expected expression before ‘Int’
- Null hypothesis
- How to Solve mybatis returns null when querying Oracle database with char type field
- The use of C + + template function and lambda expression