# # # Error querying the database. Cause: org. Apache. Ibatis. Builder. IncompleteElementException: Could not find the result map. Org. Fkit mapper. UserMapper.
# # # Cause: org. Apache. Ibatis. Builder. IncompleteElementException: Could not find the result map. Org. Fkit mapper. UserMapper.
The at org. Apache. Ibatis. Exceptions. ExceptionFactory. WrapException (30) ExceptionFactory. Java:
The at org. Apache. Ibatis. Session. Defaults. DefaultSqlSession. SelectList (DefaultSqlSession. Java: 150)
The at org. Apache. Ibatis. Session. Defaults. DefaultSqlSession. SelectList (DefaultSqlSession. Java: 141)
The at org. Apache. Ibatis. Session. Defaults. DefaultSqlSession. SelectList (DefaultSqlSession. Java: 136)
The at org. Fkit. Test. SelectStudentTest. Main (SelectStudentTest. Java: 18)
Under Caused by: org. Apache. Ibatis. Builder. IncompleteElementException: Could not find the result map. Org. Fkit mapper. UserMapper.
The at org. Apache. Ibatis. Builder. MapperBuilderAssistant. GetStatementResultMaps (MapperBuilderAssistant. Java: 346)
The at org. Apache. Ibatis. Builder. MapperBuilderAssistant. AddMappedStatement (MapperBuilderAssistant. Java: 290)
The at org. Apache. Ibatis. Builder. XML. XMLStatementBuilder. ParseStatementNode (XMLStatementBuilder. Java: 109)
At org. Apache. Ibatis. Session. The Configuration. BuildAllStatements (788) Configuration. Java:
At org. Apache. Ibatis. Session. The Configuration. GetMappedStatement (719) Configuration. Java:
At org. Apache. Ibatis. Session. The Configuration. GetMappedStatement (714) Configuration. Java:
The at org. Apache. Ibatis. Session. Defaults. DefaultSqlSession. SelectList (DefaultSqlSession. Java: 147)
. 3 more
Under Caused by: Java. Lang. IllegalArgumentException: Result Maps collection does not contain the value for org. Fkit. Mapper. UserMapper.
The at org. Apache. Ibatis. Session. The Configuration $StrictMap. Get (888) Configuration. Java:
At org. Apache. Ibatis. Session. The Configuration. GetResultMap (640) Configuration. Java:
The at org. Apache. Ibatis. Builder. MapperBuilderAssistant. GetStatementResultMaps (MapperBuilderAssistant. Java: 344)
. Nine more
CodePudding user response:
ResultType should write the corresponding full path names such as: com. Test. Dao. The UserCodePudding user response:
Try to BaseResultMapCodePudding user response:
ResultMap to configure the corresponding entity class full name of the class rather than the full name of the class MapperCodePudding user response:
But I is a set of return is the List, not a class, write the full path is also one of the errorCodePudding user response:
You are to return to a List