No configuration found. Grouping ing ehcache from ehcache-failsafe.xml found in the classpath
Http://zhangguyou2009.blog.163.com/blog/static/34691638200872285854795/
If no ehcache. xml file exists under/sandh/Web-INF/classes, this error is returned, no configuration found.
Caching ing ehcache from ehcache-failsafe.xml found in the classpath:... this file is hibernate slow
Save configuration file
Parts
<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>
The default class cache and city cache policies are configured above:
<Diskstore> indicates that when the number of objects in the memory cache exceeds the class-set memory cache quantity, the cached objects are written to the hard disk, Path ="
Java. Io. tmpdir
"indicates writing data to this directory. The Java. Io. tmpdir directory is generated according to the relative path at runtime.
indicates that the default data expiration Policy of the cache is set.
indicates setting a data expiration Policy for caching with a specific name.
name indicates the specific cache name.
maxelementsinmemory indicates the maximum object data volume that can be stored in the cache.
eternal indicates whether the data in the cache is a constant.
timetoidleseconds indicates the cache data passivation time
timetoliveseconds indicates the cache data lifecycle.
overflowtodisk indicates whether to enable disk cache when the memory is insufficient.