千家信息网

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

发表于:2025-01-23 作者:千家信息网编辑
千家信息网最后更新 2025年01月23日,Cause: org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found f
千家信息网最后更新 2025年01月23日A query was run and no Result Maps were found for the Mapped Statement

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