Ehcache翻译

Why is there a warning in my application's log that a new CacheManager is using a resource already in use by another CacheManager.

WARN  CacheManager ...  Creating a new instance of CacheManager using the diskStorePath
"C:\temp\tempcache" which is already used by an existing CacheManager.

This means, that for some reason, your application is trying to create a second or more instance of Ehcache's CacheManager with the same configuration. Ehcache is automatically resolving the Disk path conflict, which works fine. To eliminate the warning: * Use a separate configuration per instance * If you only want one instance use the singleton creation methods i.e CacheManager.getInstance(). In Hibernate there is a special provider for this callednet.sf.ehcache.hibernate.SingletonEhCacheProvider. See the Hibernate page for details.

你可能感兴趣的:(Ehcache翻译)