ehcache.xml异常。。。which is already used by an existing CacheManager.

roger_lmj roger_lmj 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
09:25:32,312 WARN CacheManager:271 - Creating a new instance of CacheManager using the diskStorePath "/data/ehcache" 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 /data/ehcache\ehcache_auto_created_1283217932312.
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.


我的配置:
<diskStore path="/data/ehcache" />

<defaultCache maxElementsInMemory="10000"
eternal="false"
overflowToDisk="true"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
diskPersistent="false"
diskExpiryThreadIntervalSeconds="120" />

<cache name="org.hibernate.cache.UpdateTimestampsCache"
maxElementsInMemory="5000"
eternal="true"
overflowToDisk="true" />

<cache name="org.hibernate.cache.StandardQueryCache"
maxElementsInMemory="10000"
eternal="false"
timeToLiveSeconds="120"
overflowToDisk="true" />
很简单不知道老是报那错。。。。呵呵请叫一下大家哈谢谢
...全文

相关推荐

评论 1
收藏 已收藏
分享
返回顶部
roger_lmj
Java EE 67,535 成员 225,843 内容