mybatis 核心类分析 问题: 解决: @startuml title SqlSession selectList SqlSession -> Configuration : getMappedStatement(statement) return ms SqlSession -> Executor : query(ms, wrapCollection(parameter), rowBounds, handler) Executor -> StatementHandler : prepare(connection, transaction.getTimeout()) StatementHandler -> Statement : new return stmt StatementHandler -> Executor : Statement stmt Executor -> StatementHandler : query(stmt, resultHandler) StatementHandler -> Statement : execute(sql) return StatementHandler -> ResultHandler : handleResultSets(statement) ResultHandler -> StatementHandler : result StatementHandler -> Executor : result Executor -> SqlSession : result @enduml 1234567891011121314151617181920212223242526 @startuml title SqlSession selectList SqlSession -> Configuration : getMappedStatement(statement)return ms SqlSession -> Executor : query(ms, wrapCollection(parameter), rowBounds, handler)Executor -> StatementHandler : prepare(connection, transaction.getTimeout())StatementHandler -> Statement : newreturn stmtStatementHandler -> Executor : Statement stmt Executor -> StatementHandler : query(stmt, resultHandler) StatementHandler -> Statement : execute(sql)return StatementHandler -> ResultHandler : handleResultSets(statement)ResultHandler -> StatementHandler : resultStatementHandler -> Executor : resultExecutor -> SqlSession : result @enduml … Read More