No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath
2007-05-15 16:28
615 查看
如果在/sandh/web-inf/classes下面没有ehcache.xml这个文件,会报这个错误,No configuration found.
Configuring ehcache from ehcache-failsafe.xml found in the classpath:.....这个文件是hibernate缓存配置文
件
<ehcache>
<diskStore path="java.io.tmpdir"/>
<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="10000"
timeToLiveSeconds="10000"
overflowToDisk="true"
/>
<cache name="com.hour41.hibernate.vo.common.City"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="10000"
timeToLiveSeconds="10000"
overflowToDisk="true"
/>
</ehcache>
上面配置了默认类缓存和城市类缓存策略:
<diskStore>表示当内存缓存中对象数量超过类设置内存缓存数量时,将缓存对象写到硬盘,path=”java.io.tmpdir
”表示把数据写到这个目录下。Java.io.tmpdir目录在运行时会根据相对路径生成。
<defaultCache>表示设定缓存的默认数据过期策略。
<cache>表示设定用具体的命名缓存的数据过期策略。
name表示具体的缓存命名。
maxElementsInMemory表示cache中最大允许保存的对象数据量。
eternal表示cache中数据是否为常量。
timeToIdleSeconds表示缓存数据钝化时间
timeToLiveSeconds表示缓存数据的生命时间。
overflowToDisk表示内存不足时,是否启用磁盘缓存。
Configuring ehcache from ehcache-failsafe.xml found in the classpath:.....这个文件是hibernate缓存配置文
件
<ehcache>
<diskStore path="java.io.tmpdir"/>
<defaultCache
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="10000"
timeToLiveSeconds="10000"
overflowToDisk="true"
/>
<cache name="com.hour41.hibernate.vo.common.City"
maxElementsInMemory="10000"
eternal="false"
timeToIdleSeconds="10000"
timeToLiveSeconds="10000"
overflowToDisk="true"
/>
</ehcache>
上面配置了默认类缓存和城市类缓存策略:
<diskStore>表示当内存缓存中对象数量超过类设置内存缓存数量时,将缓存对象写到硬盘,path=”java.io.tmpdir
”表示把数据写到这个目录下。Java.io.tmpdir目录在运行时会根据相对路径生成。
<defaultCache>表示设定缓存的默认数据过期策略。
<cache>表示设定用具体的命名缓存的数据过期策略。
name表示具体的缓存命名。
maxElementsInMemory表示cache中最大允许保存的对象数据量。
eternal表示cache中数据是否为常量。
timeToIdleSeconds表示缓存数据钝化时间
timeToLiveSeconds表示缓存数据的生命时间。
overflowToDisk表示内存不足时,是否启用磁盘缓存。
相关文章推荐
- 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: jar:file:/D:/package/java/hibernat
- 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解决
- Configuring ehcache from ehcache-failsafe.xml found in the classpath:
- 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
- hibernate:net.sf.ehcache.config.Configurator#configure : No configuration found. Configuring ehcache from ehcache-failsafe.xml f
- 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 问题
- 解决:No configuration found. Configuring ehcache from ehcache-failsafe.xml 问题
- 警告: No configuration found for the specified action: '/myNameSpace/login.action' in names
- git 出现The current branch is not configured for pull No value for key branch.master.merge found in configuration错误的解决办法
- No configuration found for the specified action: '/myNameSpace/login.action' in namespace: ''. Form
- No configuration found for the specified action: 'login' in namespace: ''. Form action defaulting to 'action' attribute's litera
- org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from class path resource