Table of contents
报错 :Cause: java.lang.IllegalArgumentException: invalid comparison: java.util.Date and java.lang.String
error analysis
In Mybatis, I also make non-empty judgments on Date type data ;
java.lang.IllegalArgumentException: invalid comparison: java.util.Date and java.lang.String
Exception caused by comparison between Date type and String type
Solution:
Delete creationDate != '' and remove the comparison of Date type with empty string .
Keep creationDate != null just fine.