mybatis整合ehcache
ehcache.xml
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../config/ehcache.xsd> <!-- 缓存到本地磁盘上 的缓存目录 --> <!--<diskStore path="F:\develop\ehcache"/> --> <defaultCache maxElementsInMemory="1000" maxElementsOnDisk="10000000" eternal="false" overflowToDisk="false" timeToIdleSeconds="120" timeToLiveSeconds="120" diskExpiryThreadIntervalSeconds="120" momoryStoreEvictionPolicy="LRU"> </defaultCache> </ehcache>
查看更多随笔:http://www.cnblogs.com/Joke-Jay/