![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
文章平均质量分 86
小滦不秃头♂️
这个作者很懒,什么都没留下…
展开
-
Mybatis关联关系映射
一、一对多关联关系 注:这边使用订单表和订单详情表为例 第一步:用逆向生成工具生成对应的方法以及实体类 在generatorConfig.xml中编写代码生成代码 <table schema="" tableName="t_hibernate_order" domainObjectName="Order" enableCountByExample="false" enableDeleteByExample="false" enabl原创 2021-12-19 20:10:46 · 576 阅读 · 0 评论 -
mybatis之spring集成
一、ybatis与spring集成 添加spring相关依赖(5.0.2.RELEASE): spring-core、spring-beans、spring-context、spring-orm、spring-tx、 spring-aspects、spring-web 添加mybatis相关依赖: mybatis核心:mybatis(3.4.5)、Mybatis分页:pagehelper(5.1.2) spring整合mybatis(1.3.1): mybatis-spring 添加d..原创 2021-12-15 23:26:57 · 311 阅读 · 0 评论