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文件的查询语句添加返回值即可

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM