当前位置:Gxlcms > 数据库问题 > 使用mybatis如果类属性名和数据库中的属性名不一样取值就会为null

使用mybatis如果类属性名和数据库中的属性名不一样取值就会为null

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

select id="selectEmp" resultType="com.atguigu.mybatis.bean.Employee"> select id,last_name lastName,gender,email from tbl_employee where id= #{id} </select>

 

使用mybatis如果类属性名和数据库中的属性名不一样取值就会为null

标签:img   就会   tis   HERE   employee   sel   email   pre   java   

人气教程排行