mybatis的面试一对一,一对多,多对多的mapper.xml配置

使用springboot完成一对一,一对多:

https://blog.csdn.net/KingBoyWorld/article/details/78966789

传统的mapper文件中的一对一,一对多:

一对一:

主要是<resultMap>与<association>

 

一对多:

主要是<collection>

多对多:

 

posted @ 2018-03-28 14:26  小虾米的java梦  阅读(2044)  评论(0编辑  收藏  举报