报错信息
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
### Error querying database. Cause: java.lang.NumberFormatException: For input string: "xxx"
### Cause: java.lang.NumberFormatException: For input string: "xxx"
java.util.concurrent.CompletionException: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:
解决办法
- 1、外面使用单引号,参数使用双引号
<if test='test == "xxx" '>
</if>
- 2、加toString()方法
<if test="test == 'xxx'.toString()">
</if>
标签:java,spring,报错,sql,mybatis,org
From: https://www.cnblogs.com/fchhk-blog/p/17888313.html