![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Mybatis
文章平均质量分 82
Mybatis
Mr_姚
这个作者很懒,什么都没留下…
展开
-
mybatis中mapper生成代理的过程
目录mybatis中mapper代理的生成过程与Spring集成时mapper代理的生成过程与SpringBoot集成时mapper代理的生成过程mybatis中mapper代理的生成过程构建代理类工厂从入口点开始一步一步看,首先SqlSessionFactoryBuilder类中build()方法加载配置文件 public SqlSessionFactory build(InputStream inputStream, String environment, Properties pr原创 2021-09-22 12:04:02 · 1532 阅读 · 2 评论 -
Mybatis中动态SQL的用法
在访问数据库时,需要拼装SQL语句,在Mybatis中提供了对SQL的拼装,只有几个简单的元素:if、test、choose,when,otherwise、where、set、trim、foreach、bind。 用法都十分简单,总结以下基本的用法。 首先准备一实体类public class User { private int id; private St...原创 2018-04-06 17:58:45 · 2104 阅读 · 0 评论