SSM Frame Start error Result Maps collection already contains value for ...

Source: Internet
Author: User

In the deployment of the project to the server, the startup has been reported this error, but the online under the obvious can start normally ah. Later in the online search, summed up a solution:

1, when using Ibatis Temptesttablemapper.xml implementation interface Temptesttablemapper.java method in the time of the ID has a duplicate value

It means: Your ***mapper.xml file has <resultmap type= "user" id= "Userresult" >, and the ID value is duplicated

2, when the SQL statement returns, use <select id= "xxx" resulttype= "example" > <resultmap id= "Example" type= "XXX" > Conflict caused. Change Resulttype to Resultmap to resolve the issue.

3, Eclipse compiled a copy in the bin directory, the bin directory or web-inf under the class directory empty

4, the Code generation tool from the new into an XML file, resulting in the source file content is not deleted, the regenerated code is appended to the source file content, delete the original content can be

But after careful comparison, it was found that there was no such situation and later found that:

It turned out that I did not delete the original ***mapper.xml file, but instead changed its file name, and then uploaded the new ***mapper.xml file.

Well, hope can help you solve the problem,,,,

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.