首页 > 学院 > 开发设计 > 正文

字段名和实体属性名不一致

2019-11-08 02:01:36
字体:
来源:转载
供稿:网友

1.使用sql方式

select comment_id commentId,2.使用mybatis中resultMap

	<resultMap type="com.hanson.ssm.pojo.Comment" id="selectCommentResultType">		<result column="comment_id" PRoperty="commentId"/>			</resultMap>


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表