WARN : net.sf.ehcache.config.Configurator#configure : No co nfiguration found.Configuring ehcache
来源:互联网 发布:知乎手机如何提问问题 编辑:程序博客网 时间:2024/05/16 14:08
在工作中运行文件时报了如下的警告,经过研究发现没有把配置文件放在指定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表示内存不足时,是否启用磁盘缓存。 方法可行呀
1 0
- WARN : net.sf.ehcache.config.Configurator#configure : No co nfiguration found.Configuring ehcache
- WARN : net.sf.ehcache.config.Configurator#configure : No configuration found. Configuring ehcache fr
- hibernate:net.sf.ehcache.config.Configurator#configure : No configuration found. Configuring ehcache from ehcache-failsafe.xml f
- net.sf.ehcache.config.Configurator#configure : No configuration found.
- WARN No configuration found. Configuring ehcache from ehcache-failsafe.xml....
- 1.WARN:No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
- warn中出来如下信息的解决方案(No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath)
- No configuration found. Configuring ehcache from ehcache-failsafe.xml
- No configuration found. Configuring ehcache from ehcache-failsafe.xml
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath解决
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
- 解决:No configuration found. Configuring ehcache from ehcache-failsafe.xml 问题
- 解决:No configuration found. Configuring ehcache from ehcache-failsafe.xml 问题
- Hibernate4 net.sf.ehcache.Ehcache.getCacheConfiguration错误
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/D:/package/java/hibernat
- Configuring ehcache from ehcache-failsafe.xml found in the classpath:
- DM8168 Uboot烧写(ccs5.3)
- MyISAM 和 InnoDB 讲解
- Linux的进程调度时机(Schedule函数何时调用)
- 黑马程序员 java IO BufferedReader BufferdWriter 读文件 写文件
- Ubuntu Eclipse中Pairing Based Cryptography编程配置详解
- WARN : net.sf.ehcache.config.Configurator#configure : No co nfiguration found.Configuring ehcache
- Hashcode的作用
- Java并发编程基础构建模块(03)——阻塞队列
- 理解 Android Build 系统
- Linux中nginx映射php文件夹
- 如何实现团队的自组织管理
- cxf下的Service(URL, QName, WebServiceFeature[]) is undefined
- pentaho report desinger5.01如何配置数据源
- android 的OOM