MyBatis引入外部文件的resultMap

    xiaoxiao2021-04-19  81

    一.使用 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
    转载请注明原文地址: https://ju.6miu.com/read-675751.html

    最新回复(0)