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

mybatis插入出现org.apache.ibatis.executor.ExecutorException: No setter found for the keyProperty 'xxx'异常的原因

时间:2019-11-20 23:22:50      阅读:263      评论:0      收藏:0      [点我收藏+]

标签:setter   ibatis   bat   exce   pre   文件   for   出现   executor   

确定有setter方法,问题其实是xml文件中,insert的主键的列名写错了,如下,一开始写成ComId

<insert id="insertCom" parameterType="Comment" useGeneratedKeys="true" keyProperty="comId">

mybatis插入出现org.apache.ibatis.executor.ExecutorException: No setter found for the keyProperty 'xxx'异常的原因

标签:setter   ibatis   bat   exce   pre   文件   for   出现   executor   

原文地址:https://www.cnblogs.com/zxcoder/p/11901593.html

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