No configuration found. Fixing ing ehcache from ehcache-failsafe.xml found in the classpath Solution

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.