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

Source: Internet
Author: User

Cause:org.apache.ibatis.executor.executorexception:a query was run and no Result Maps were found for the Mapped statemen  T ' Com.shadow.foretaste.UserInfoDao.getPhoneNum '. It's likely that neither a result Type nor a result Map is specified.

The cause of this error is:

No return value type specified in Mapper.xml

<select id= "Getphonenum" > select Phone_num from user_info where id = #{id}</select>

After modification:

<select id= "Getphonenum" resulttype= "String" > select Phone_num from user_info where id = #{id}</select> ;


This article is from the "History of Data Mining Engineers" blog, be sure to keep this source http://qianqiansun.blog.51cto.com/13271301/1965502

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.