热门IT资讯网

A query was run and no Result Maps were found for the Mapped Statement

发表于:2024-11-23 作者:热门IT资讯网编辑
编辑最后更新 2024年11月23日,Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found f

Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.shadow.foretaste.UserInfoDao.getPhoneNum'. It's likely that neither a Result Type nor a Result Map was specified.

导致这个错误的原因是:

mapper.xml中没有指定返回值类型

修改后:


0