mybatis插入出现org.apache.ibatis.executor.ExecutorException: No setter found for the keyProperty 'xxx'异常的原因
确定有setter方法,问题其实是xml文件中,insert的主键的列名写错了,如下,一开始写成ComId
<insert id="insertCom" parameterType="Comment" useGeneratedKeys="true" keyProperty="comId">确定有setter方法,问题其实是xml文件中,insert的主键的列名写错了,如下,一开始写成ComId
<insert id="insertCom" parameterType="Comment" useGeneratedKeys="true" keyProperty="comId">相关推荐
吴鹏阳:这个老师如果爱举报,你这门课确实可能挂科,这没办法。但是辅导员所谓的延毕,,怎么说呢,毕业生的就业率可是辅导员的一大考核,他咋可能为了一个逃课实习去损害自己的利益呢?