当前位置:Gxlcms > 数据库问题 > mybatis当数据库中的表有下划线的时候怎么办

mybatis当数据库中的表有下划线的时候怎么办

时间:2021-07-01 10:21:17 帮助过:7人阅读


  <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当数据库中的表有下划线的时候怎么办

标签:

人气教程排行