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