![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
文章平均质量分 75
qingxialntian
这个作者很懒,什么都没留下…
展开
-
mybatis与spring整合配置文件
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframew原创 2015-03-18 20:49:33 · 394 阅读 · 0 评论 -
mybatis传参
1.注解传参 2.默认命名方式 //分页查询教师信息 public List findTeacherByPage( String sort,//排序字段 String dir, //排序方向 int start, //起始记录 int limit //记录条数 ); select id="findTeacherByPage" resultMap="supervisorR原创 2015-03-18 20:39:44 · 496 阅读 · 0 评论 -
一对一,多对多映射配置
一对一,多对多映射配置 嵌套ResultMap方式 studentMapper.xml select s.id s_id,s.name s_name,s.gender s_gender,s.major s_major, s.grade s_grade,t.id t_id,t.name t_name,t.gender t_gender, t.title t_title,t.resear原创 2015-03-18 19:52:31 · 370 阅读 · 0 评论