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