![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MyBatis
文章平均质量分 83
小呆呆^
一只呆呆的程序猿不停地往上爬
展开
-
MyBatis-Plus字段类型处理器介绍以及使用
在 MyBatis-Plus 中,TypeHandler 是用来处理 Java 类型与数据库类型之间转换的组件。它们用于在执行 SQL 语句时,将 Java 对象的值设置到 PreparedStatement 中,或者从 ResultSet 或 CallableStatement 中取出值。它可以帮助 MyBatis-Plus 将数据库中的数据转换成 Java 对象,或者将 Java 对象转换成数据库可接受的数据类型。原创 2024-07-15 16:48:12 · 1106 阅读 · 0 评论 -
MyBatis的坑(动态SQL会把0和空串比较相等为true)
在开发过程中遇到MyBatis的动态SQL的if条件不生效的情况,但经过debuger发现并不是参数问题,已经拿到了参数并传给了MyBatis,且从表达式来看是为true的,那么为什么不生效呢?本文简单讲述了MyBatis动态SQL的if条件不生效的情况,以及为什么MyBatis动态SQL会把0和空串比较为相等true的原因,这算是MyBatis的一个坑了。原创 2024-05-29 16:22:49 · 590 阅读 · 0 评论 -
@Autowired报错Could not autowire. No beans of ‘XXX‘ type found
IDEA中使用@Autowired报错Could not autowire. No beans of 'XXX' type found,错误大致意思为:没有匹配到类型为XXX的bean。原创 2023-02-27 23:19:27 · 8294 阅读 · 2 评论 -
SpringBoot整合MyBatis的简单介绍
SpringBoot整合MyBatis的简单介绍原创 2023-02-15 00:45:25 · 109 阅读 · 0 评论