(0 MS) [main] warn: net. SF. ehcache. config. configurator # configure: No configuration found. login ing 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
Solution:
Cause: this error is reported because there is no ehcache. xml file under/sandh/Web-INF/classes! This file is the hibernate cache configuration file.
Solution: extract the file ehcache-1.1.jar from the ehcache-failsafe.xml and rename it ehcache. XML to copy it to the classes!
Configuration File explanation:
<Defaultcache> sets the default cache data expiration policy.
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.
The method is feasible.