mybatis使用map传递多参数报错:A query was run and no Result Maps were found for the Mapped Statement

在使用mybatis进行多参数传递时,报错:

A query was run and no Result Maps were found for the Mapped Statement 'xx.xx.'.  It's likely that neither a Result Type nor a Result Map was specified.

后来发现,原来是没有指定resultMap或resultType

mybatis中的所有查询,都必须返回resultType或者resultMap的值,否则就会报如上错误的。

到此,问题就解决了。

可是我又好奇了,resultMap怎么使用呢?

这就涉及到多表联查

请看下文!

....................

----------------------------------------------------------------------------
大家好,我是ABKing

金麟岂是池中物,一遇风云便化龙!
欢迎与我交流技术问题

上一篇:Mac OS X 启用 Web 服务器


下一篇:用 React 分页显示数据