码迷,mamicode.com
首页 > 移动开发 > 详细

Mapping is missing column attribute for property null错误

时间:2016-04-23 16:48:49      阅读:749      评论:0      收藏:0      [点我收藏+]

标签:

你的映射文件格式有问题,对于<property>元素,不需要<column>子元素,你只要把<column>元素都删除就可以了

<id column="id" property="id" jdbcType="INTEGER" />
<result column="name" property="name" jdbcType="VARCHAR" />
<result/>

我就是多了个<result/>发生了这个错误

Mapping is missing column attribute for property null错误

标签:

原文地址:http://www.cnblogs.com/zhoumingming/p/5424843.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!