Attribute "resultType" must be declared for element type "update" or "insert"

爱被打了一巴掌 2022-06-10 10:59 287阅读 0赞

Attribute “resultType” must be declared for element type “update” or “insert”

  1. 在写mybatis配置文件mapper里面sql语句时候,发生了这样一个错误,是个小坑,了解一下就行了。如图所示:

20170817144208997

  1. 仔细查看错误如图所示:

20170817144033913

  1. 解决错误就是把resultType去掉,因为在insertupdate语句中是没有返回值的。小坑小坑。分享一下常识性问题。

发表评论

表情:
评论列表 (有 0 条评论,287人围观)

还没有评论,来说两句吧...

相关阅读