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,,,,