首页 > Web开发 > 详细

WARN : net.sf.ehcache.config.Configurator#configure : No co nfiguration found.Configuring ehcache

时间:2014-04-09 18:38:37      阅读:811      评论:0      收藏:0      [点我收藏+]

在工作中运行文件时报了如下的警告,经过研究发现没有把配置文件放在指定classes目录下

(0 ms) [main] WARN : net.sf.ehcache.config.Configurator#configure : No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/workspace/SSHProject/WebRoot/WEB-INF/lib/ehcache-1.1.jar!/ehcache-failsafe.xml 解决方案: 原因:报这个错是因为在/sandh/web-inf/classes下面没有ehcache.xml这个文件!这个文件是hibernate缓存配置文件。 解决方法:从ehcache-1.1.jar 中把文件ehcache-failsafe.xml 解压出来改名 ehcache.xml 复制到classes下面就行了! 配置文件解读: 表示设定缓存的默认数据过期策略。 name表示具体的缓存命名。 maxElementsInMemory表示cache中最大允许保存的对象数据量。 eternal表示cache中数据是否为常量。 timeToIdleSeconds表示缓存数据钝化时间 timeToLiveSeconds表示缓存数据的生命时间。 overflowToDisk表示内存不足时,是否启用磁盘缓存。 方法可行呀

WARN : net.sf.ehcache.config.Configurator#configure : No co nfiguration found.Configuring ehcache,布布扣,bubuko.com

WARN : net.sf.ehcache.config.Configurator#configure : No co nfiguration found.Configuring ehcache

原文:http://blog.csdn.net/benjamin_whx/article/details/23262959

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!