selectOne()最终也是调用了selectList()。
在SelectList()中,我们先根据command name(Statement ID)从Configuration中拿到MappedStatement,这个ms 上面有我们在xml 中配置的所有属性,包括id、statementType、sqlSource、useCache、入参、出参等等。在SelectList()
selectOne()最终也是调用了selectList()。
在SelectList()中,我们先根据command name(Statement ID)从Configuration中拿到MappedStatement,这个ms 上面有我们在xml 中配置的所有属性,包括id、statementType、sqlSource、useCache、入参、出参等等。在SelectList()