A query was run and no Result Maps were found for the Mapped Statement 'user.insertUser!selectKey'

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_34491508/article/details/83548495

自己没仔细出现这个错误,这个是使用MyBatis最常见的一种错误,从其描述来看是user.insertUser!selectKey这个Statement没有Result Type或Result Map。

mybatis中不管什么查询,都必须返回resultType或者resultMap的值,否则就会报错的!

猜你喜欢

转载自blog.csdn.net/qq_34491508/article/details/83548495