<result column="username" property="username" jdbcType="VARCHAR" />
<result column="pwd" property="pwd" jdbcType="VARCHAR" />
<result column="right_id" property="rightId" jdbcType="INTEGER" />
</resultMap>
下面返回的类型是你上面定义的红体字<resultMap id="BaseResultMap" type="你的po类" >
<select id="findUserList" parameterType="com.cn.imax.po.UserQueryVo"
resultMap="BaseResultMap">
SELECT user.* FROM user
</select>
这样带下划线的数据就可以显示了
mybatis当数据库中的表有下划线的时候怎么办
标签: