Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

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

Shulou Source: shulou.com Published: 2022-06-03 07:42:08 09月23日 Update

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.

The reasons for this error are:

The return type is not specified in mapper.xml

Select phone_num from user_info where id = # {id}

After modification:

Select phone_num from user_info where id = # {id}

Tags: Cause type error Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft MySQL OPPO Reno macOS Shulou Tech Info