mybatis中resulttype 与resultmap 中出现的问题

使用resulttype  中的bean里面成员变量一定一定要与数据库中的列名一样,否则将取不到值。

使用resultmap 中的bean里面的成员变量则不需要一样,只需在自己定义的resultmap 属性中设置如下:



猜你喜欢

转载自blog.csdn.net/qq_25858235/article/details/79729068