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   收藏:0   阅读:32

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自带类型。

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!