![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MyBatis
文章平均质量分 51
wisdom-chen
Please enjoy the pain which is unable to avoid.
展开
-
Mybatis参数格式化异常:NumberFormatException: For input string:“xx“
### Error querying database. Cause: java.lang.NumberFormatException: For input string: "T"解决方法:1、转成字符串:.toString() <if test="isHotel == 'F'.toString()">2、加转义实体字符串引号" <if test="isHotel == "F"">3、外部单双.原创 2021-11-23 09:52:40 · 925 阅读 · 0 评论 -
MyBatis面试题
1、MyBatis中有哪些Executor执行器?它们之间的区别是什么?SimpleExecutor: 每执行一次update或select,就开启一个Statement对象,用完立刻关闭Statement对象。ReuseExecutor:每次执行update或select,把sql作为key从Map中查找Statement对象,不存在则创建,用完不关闭,而是放置在Map中。BatchExecutor :执行update(没有select,JDBC批处理不支持select),将所有sql都添加到原创 2021-08-12 23:07:49 · 192 阅读 · 0 评论