请教各位,我在spring+hibernate里配置Ehcache缓存,出现以下警告,请问是什么原因呢?
警告: Creating a new instance of CacheManager using the diskStorePath "D:\Apache Tomcat 6.0.18\temp" which is already used by an existing CacheManager.
The source of the configuration was classpath.
The diskStore path for this CacheManager will be set to D:\Apache Tomcat 6.0.18\temp\ehcache_auto_created_1262783591937.
To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
applicationContext.xml里
true
true
org.hibernate.cache.EhCacheProvider
ehcache.xml里
timeToIdleSeconds="60" timeToLiveSeconds="60" overflowToDisk="true"
diskSpoolBufferSizeMB="30" maxElementsOnDisk="1000000"
diskPersistent="false" diskExpiryThreadIntervalSeconds="60"
memoryStoreEvictionPolicy="LRU" />