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