关于mybatis selectKey的问题
org.mybatis.spring.MyBatisSystemException:nestedexceptionisorg.apache.ibatis.executor...
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.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.ng.crossquery.entity.po.QueryMapper.addTemplate!selectKey'. It's likely that neither a Result Type nor a Result Map was specified.
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73)
报错但是数据插入成功了,但是ID的值插入的是0,而不是序列的值! 展开
at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:73)
报错但是数据插入成功了,但是ID的值插入的是0,而不是序列的值! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询