首页 > 移动平台 > 详细

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement

时间:2021-05-19 23:49:00      阅读:26      评论:0      收藏:0      [点我收藏+]

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement ‘com.myproject.community.dao.DiscussPostMapper.selectDiscussPostRows‘. It‘s likely that neither a Result Type nor a Result Map was specified.

查询的时候缺少了入参或出参

技术分享图片

 

 

 

当存在<if>时,即使是java自带的类型,也需要加返回值类型。其他情况,只有在使用的bean是加就可以,即不是java自带类型。

org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement

原文:https://www.cnblogs.com/codinghard/p/14787134.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!