[Learning] mybatis source caching mechanism

A, mybatis cache

A cache: sqlsession level, default open (within a valid transaction)
secondary cache: sqlsessionFactory level, need to manually open, XML configuration cache node (dependent on the results of execution of the transaction, cache refresh)

 

Two, mybatis cache schematic flow diagram

 

Guess you like

Origin www.cnblogs.com/shangxiaofei/p/11830932.html