mybatis中的异常记录————01(org.apache.ibatis.executor.ExecutorException)


报错信息:

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

 

解决方法:

查询结果需要返回 Result Type或者Result Map,去mapper文件的查询语句添加返回值即可

 

posted @ 2020-08-03 10:34  柳风离  阅读(1262)  评论(0)    收藏  举报