WARN : net.sf.ehcache.config.Configurator#configure : No configuration found. Configuring ehcache fr
2014-12-27 10:19
405 查看
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表示内存不足时,是否启用磁盘缓存。
原因:报这个错是因为在/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表示内存不足时,是否启用磁盘缓存。
相关文章推荐
- 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 co nfiguration found.Configuring ehcache
- 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
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
- 使用hibernate-tools时出现java.lang.NoSuchMethodError:net.sf.ehcache.config.CacheConfiguration.isTerracottaClustered()错误
- ehcache-core版本导致异常 tried to access method net.sf.ehcache.config.CacheConfiguration.<init>()V from cl
- 解决: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: jar:file:/D:/package/java/hibernat
- 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 问题
- 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
- No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
- 解决:<net.sf.ehcache.util.UpdateChecker> : New update(s) found: 2.6.5