错误:No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath 解决
如果在/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表示内存不足时,是否启用磁盘缓存。
相关推荐
MS.Press.Self-Paced.Training.Kit.Exam.70-652.Configuring.Windows.Server.Virtualization
原版MSCE 考试用书,也可做为参考用书,比较详细MS.Exam.Ref.70-410.Installing.and.Configuring.Windows.Server.2012.R2.0735684
2.1 Configuration Management.............................................................................- 14 - 2.2 Change Management......................................................................
ORACLE OSB开发指南,英文版。 目录: Part I IDE Help for Oracle ...Consuming Oracle Service Bus Proxy Services in Oracle JDeveloper with WSIL ................ 2-15 Editing Proxy Services.....................
Configuring load balancing pools ..................................................................................... 1-10 Configuring profiles ..........................................................
Aligning Signals in Delta-Time . . . . . 201 Clock Multipliers . . 203 Asynchronous Reference Signals . . . 205 Random Generation of Reference Signal Parameters 206 Applying Reset . . . . 208 ...
2-01 Module 3: Configuring Projects ..................................... 3-01 Module 4: Designing and Running Jobs ........................ 4-01 Module 5: Working with Metadata................
2.5.1. Referencing XML configuration in JavaConfig 2.5.2. Referencing JavaConfig in XML configuration 2.6. Summary Chapter 3. Advanced wiring 3.1. Environments and profiles 3.1.1. Configuring profile ...
Exercise 1-2A Running a Sequence File from the LabVIEW Operator Interface ............................................................................1-20 Exercise 1-2B Running a Sequence File from ...
15.2. Importing XML Configuration 16. Auto-configuration 16.1. Gradually Replacing Auto-configuration 16.2. Disabling Specific Auto-configuration Classes 17. Spring Beans and Dependency Injection 18. ...
NSA Security-Enhanced Linux (SELinux) is an implementation of a flexible and fine-grained mandatory access control (MAC) architecture called Flask in the Linux kernel[LoscoccoFreenix2001]. SELinux can...
GitHub has rapidly become the default platform for software development, but it’s also ideal for other text-based documents, from contracts to screenplays. This hands-on book shows you how to use ...
stuts2项目启动tomcat报错:Error configuring application listener of class org.apache.struts2.dispatcher.ng.listener.StrutsListener,缺少的是这个javassist-3.11.0.GA.jar
4.1.1.11 Packet Tracer - Configuring Extended ACLs Scenario 2.pka
Your mouse is slowing you down.... Configuring tmux Chapter 3. Scripting Customized tmux Environments Chapter 4. Working With Text and Buffers Chapter 5. Pair Programming with tmux Chapter 6. Workflows
Configuring Background Method Servers ..........................................................3-3 Configuring RMI for Tunneling over HTTP.......................................................3-8
ethernet-x520-configuring-fcoe-vmware-esxi-5-guide
Microsoft.Press.MCTS.Self.Paced.Training.Kit.Exam.70.680.Configuring.Windows.7.Oct.2009.rar
To make sure your Mac OSX configuration is correct, create an empty "FireMonkey iOS HD" Project, use "dpr2xcode" to create XCode Project files and try to run that Project from XCode, either inside ...
configuring IP cameras and controlling their rotation; reading sound from a microphone; sending and receiving video and audio data via the Internet; organizing video chats and video conferences ...