解决:IncompleteElementException: Could not find result map

骑猪看日落 2021-11-14 13:22 446阅读 0赞

今天是非常痛苦的一天,在做一个项目的过程中遇到了,在这里记录下来
idea控制台:

31-Jul-2019 21:13:29.676 警告 [RMI TCP Connection(2)-127.0.0.1] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesJdbc The web application [Atcrowdfunding_main_war_exploded] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.

接着看Tomcat Localhost Log
在这里插入图片描述
这个错误它给我定位到项目中第一次使用myBatis查询的地方,导致我找错误的方向错了。最后发现:
在这里插入图片描述

解决:

在这里插入图片描述
总结:
当出现类似的错误时一定要先检查Mapper映射文件。

发表评论

表情:
评论列表 (有 0 条评论,446人围观)

还没有评论,来说两句吧...

相关阅读