hibernate:net.sf.ehcache.config.Configurator#configure : No configuration found. Configuring ehcache from ehcache-failsafe.xml f
来源:互联网 发布:https是哪个端口 编辑:程序博客网 时间:2024/05/16 23:02
针对这个问题:net.sf.ehcache.config.Configurator#configure : No configurationfound. Configuring ehcache from ehcache-failsafe.xml found in theclasspath:jar:file:/E:/ytools/ssh/tools/eclipse/MyEclipse%206.0/eclipse/plugins/com.genuitec.org.hibernate.eclipse_6.0.1.zmyeclipse601200710/myeclipse-data/3.0/lib/ehcache-1.1.jar!/ehcache-failsafe.xml
在网上查到解决方法:
原因:报这个错是因为在/web-inf/classes(web开发)或是src目录下(java开发)没有ehcache.xml这个文件!这个文件是hibernate缓存配置文件。
解决方法:从ehcache-1.1.jar 中把文件ehcache-failsafe.xml 解压出来改名 ehcache.xml 复制到classes下面就行了!
配置文件解读:
<defaultCache>表示设定缓存的默认数据过期策略。
name表示具体的缓存命名。
maxElementsInMemory表示cache中最大允许保存的对象数据量。
eternal表示cache中数据是否为常量。
timeToIdleSeconds表示缓存数据钝化时间
timeToLiveSeconds表示缓存数据的生命时间。
overflowToDisk表示内存不足时,是否启用磁盘缓存。
方法可行
- hibernate:net.sf.ehcache.config.Configurator#configure : No configuration found. Configuring ehcache from ehcache-failsafe.xml f
- WARN : net.sf.ehcache.config.Configurator#configure : No configuration found. Configuring ehcache fr
- net.sf.ehcache.config.Configurator#configure : No configuration found.
- WARN 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
- WARN : net.sf.ehcache.config.Configurator#configure : No co nfiguration found.Configuring ehcache
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
- 1.WARN: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 问题
- warn中出来如下信息的解决方案(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: jar:file:/D:/package/java/hibernat
- Configuring ehcache from ehcache-failsafe.xml found in the classpath:
- Myeclipse+hibernate报错:No configuration found.关于(ehcache-failsafe.xml)
- nhibernate 比较运算符
- VC环境下DLL接口申明的三种方式
- XML DOM 学习总结!
- Makefile错误:commands commence before first target.
- C ++黑客类简析
- hibernate:net.sf.ehcache.config.Configurator#configure : No configuration found. Configuring ehcache from ehcache-failsafe.xml f
- 重启vsftp服务
- 浅谈C# XML WebServer数据序列化及数据压缩
- 计算机专业毕业后大致的工作方向
- 逻辑思维能力测试题归纳总结之计算题逻辑思维能力测试题归纳总结之计算题
- lucene总结
- sscanf分解字符串
- Donald E. Knuth 三部算法经典 图灵奖获得者
- 折腾是检验人才的唯一标准