1, MyBatis underlying framework Chushe

1, New Year

Haha, now it is the New Year, I wish the New Year Hello everyone.

Originally big New Year's is not going to touch the computer, (except to grab votes, the three students still have not mad grab votes, then suddenly extended vacation). Now the epidemic seriously, stuck at home can not go out. We can not contribute to the country, but at least not to the state clogging. He wants the state to put the epidemic under control, the country refueling, Wuhan refueling.

2. Overview

Mybatis been in use, the basic use of that difficulty is not large, map files, and then a combination of Spring on it. Development efficiency quickly. But always just stay at the level of use, which the loading mechanism, framework design approach, are also the source of what has not gone to find out about. This is not just retired and sit, and just have a good time pondering what to Mybatis framework, a grilled steak deeper things. Here hope a lot of advice, thank you.

3, the total architecture

Mybatis is an excellent persistence framework, the bottom is to achieve interaction with the database JDBC-based, and do a package and optimize the underlying basis of JDBC, adding the cache, logging mechanisms. And wherein the dynamic SQL temptation is great.

  

4, product analysis

MyBatis product architecture, SQL processes from interface applications, infrastructure services support several perspectives for analysis. This rule also applies to the analysis we learn other frameworks, the general idea of ​​most of the framework design are similar.

   

5, technical architecture analysis

The total architecture, product architecture can help us quickly know that this framework is used to do, what he offers convenience for us. But we only know the interface exposed frame it, if you want in-depth, still need to understand the technical architecture behind a little more about the underlying problem arises also facilitate the timely positioning error.

 

 

6, summed up

In the framework involves reading the configuration file, we need to know the IO read and write operations. And very resource depletion when the IO to read and write. Therefore, the frame will be used to encapsulate the API corresponding to the configuration file cached. When we need to read the object corresponding to your resources, equivalent to read the configuration file of the resource. This design framework in their own time must be taken into account, not one with a reading, or on the performance of all the configuration files to read on.

 

Guess you like

Origin www.cnblogs.com/zhh19981104/p/12237931.html