mybatis query execution steps are as follows:
-
Depending on the parameters passed dynamically generate SQL statements to be executed, the object represented by BoundSql
-
Key create a cache for the current query
-
No value cache, the data is read directly from the database
-
Execute the query and returns the result List, and then the results of the query put into the cache
-
According to the existing parameters, create StatementHandler object to execute the query operation
-
We will create a Statement delivered to StatementHandler object, call parameterize () method assignment
-
Call StatementHandler.query () method that returns a result set List
reference
https://blog.csdn.net/luanlouis/article/details/40422941
https://blog.csdn.net/a412451848/article/details/82723754