Source resolve the mybatis

mybatis query execution steps are as follows:

  1. Depending on the parameters passed dynamically generate SQL statements to be executed, the object represented by BoundSql

  2. Key create a cache for the current query

  3. No value cache, the data is read directly from the database

  4. Execute the query and returns the result List, and then the results of the query put into the cache

  5. According to the existing parameters, create StatementHandler object to execute the query operation

  6. We will create a Statement delivered to StatementHandler object, call parameterize () method assignment

  7. 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

Guess you like

Origin www.cnblogs.com/sunny-miss/p/11830595.html