Could not set property 'id' of

問題: org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: Error selecting key or setting result to parameter object. Cause: org.apache.ibatis.reflection.ReflectionException: Could not set property 'id' of 解決方式: 對於org.apache.ibatis.executor.ExecutorException: There was no TypeHandler found for parameter...這個異常,是因爲javaType和jdbcType的類型不匹配形成的。 解決方法: <selectKey keyProperty="id" resultType="int" order="AFTER"> 該爲 <selectKey keyProperty="id" resultType="Long" order="AFTER">java

相關文章
相關標籤/搜索