<resultMap id="BaseResultMap" type="com.youotech.tl_cons_credit_rating.entity.TL_C_CONS"> <id column="cons_id" jdbcType="INTEGER" property="consid"/> <result column="vatid" jdbcType="INTEGER" property="vatid"/> <result column="cust_id" jdbcType="INTEGER" property="custid"/> <result column="cons_no" jdbcType="VARCHAR" property="consno"/> <result column="cons_name" jdbcType="VARCHAR" property="consname"/></resultMap>
resultMap里面的result节点必须在id节点的后面
转载于:https://www.cnblogs.com/gigi2653/p/11388429.html
相关资源:JAVA上百实例源码以及开源项目