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

 在使用mybatis时,查询信息时,出现了上述错误。

原因是在 <select> 标签中没有添加resultType或者resultMap属性,异常信息很明确的指出:像是没有指明Result Type或者Result Map

解决方法显而易见,添加resultType或者resultMap属性即可

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

上一篇:怎么防护才能避免WEB服务器被CC攻击呢?


下一篇:android 快速使用正则表达式