mybatis cache

 Mybatis
cache First-

level cache, sqlsession-level second-
level cache, and enable second-level cache in namespace-level
settings . Mapper
is set in cache
POJO to implement serialization interface. The
detected data is first in the first-level cache, and the session ends before transferring to the second-level cache. Cache

enableCache
useCache
flushCache
sqlSession.clearCache
localCacheScope

ehcache, introduce the type attribute full class name
cache-ref in the cache tag, and refer to other cache configurations in the namespace 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325394520&siteId=291194637