一.使用
1.有resultMap属性的标签都可以使用
<select resultMap="命名空间.resultMap的id"></select>
<association resultMap="命名空间.resultMap的id"></association>
<collection resultMap="命名空间.resultMap的id"></collection>
2.某些标签的extends熟悉应该也能使用(猜测的,待验证)
<resultMap extends="命名空间.resultMap的id"></resultMap>
二.格式
命名空间.resultMap的id
本文详细介绍了在MyBatis中如何使用resultMap属性,包括<select>, <association> 和 <collection>标签的使用方法,以及如何通过extends属性复用resultMap。这对于提高SQL映射文件的可读性和可维护性至关重要。
405

被折叠的 条评论
为什么被折叠?



