MyBatis引入外部文件的resultMap

来源:互联网 发布:短信猫用什么网络 编辑:程序博客网 时间:2024/06/05 02:36

一.使用
1.有resultMap属性的标签都可以使用

<select resultMap="命名空间.resultMap的id"></select><association resultMap="命名空间.resultMap的id"></association><collection resultMap="命名空间.resultMap的id"></collection>

2.某些标签的extends熟悉应该也能使用(猜测的,待验证)

<resultMap extends="命名空间.resultMap的id"></resultMap>

二.格式

命名空间.resultMapid
0 0
原创粉丝点击