1.一个xml调用另外一个xml
UserMapper.xml
<mapper namespace=”com.A.xsstuser.impl.dao.UserDao”>
<resultMap id=”BaseResultMap” type=”com.kainaodong.xsstuser.impl.model.User”>
<id column=”user_id” jdbcType=”INTEGER” property=”userId” />
<result column=”nickname” jdbcType=”VARCHAR” property=”nickname” />
<result

本文介绍了如何在XML配置文件中实现相互调用的思路,以UserMapper.xml和UserDetailMapper.xml为例,详细讲解了namespace的使用以及resultMap和select的调用方式,强调了在进行调用时必须包含namespace的完整路径。
最低0.47元/天 解锁文章
3635

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



