MyBatis Exception result Maps collection does not contain value for java.lang.String

Source: Internet
Author: User

Result Maps collection does not contain value for java.lang.String

These are the mistakes I have reported.

As long as the result Maps collection does not contain value for***** error is the same error.

Troubleshoot the problem:

From the exception information can not be seen where the specific error. Only prompts you to call where the error occurred. But the obvious error after checking is not the code here again.

After each problem file to remove, run again and again to troubleshoot the problem finally found the wrong place, in an XML inside a query statement, which wrote resultmap= "java.lang.String" caused, and the correct should be resulttype= " Java.lang.String "

Similar to this problem is caused by this.

When writing mapper.xml, be sure to note that spring startup and error messages are not exactly where the exception information is. Remember.

MyBatis Exception result Maps collection does not contain value for java.lang.String

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.