AquerywasrunandnoResultMapswerefoundfortheMappedStatement

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中没有指定返回值类型


        select phone_num from user_info where id = #{id}

修改后:


        select phone_num  from user_info where id = #{id}

分享文章:AquerywasrunandnoResultMapswerefoundfortheMappedStatement
分享地址:http://azwzsj.com/article/pohejo.html