如题,求个模板
解决方案 »
- JSP的一个代码问题
- windows 下面的J2EE程序是否可以直接移植到linux下面呢?具体方法如何做???????详细说明的达人将给予高分回报!!!!!!
- 关于Struts资源文件始终读取不了.....在线等.....
- 在用appfuse的appgen操作oracle数据库的时候,输入ant命令pojo能生成,但在执行gen任务时失败,在gen\build下面也不生成gen目录
- hibernate里联合主键(多个字段一起作为主键)问题
- 连接Informix数据库时,使用事务报错,请大家帮忙解决一下!
- 关于JDBC-ODBC桥的简单问题!
- 如何将MS SQL数据库导出成.dat和.log文件?谢谢
- EJB与Struts的比较
- java动态库DLL加载问题,求助大神!!!
- 急急急:请教一个Spring RMI的问题
- www.hibernate.org的downloads页面内无东西可下载?
<!–
defaultCache节点为缺省的缓存策略
maxElementsInMemory 内存中最大允许存在的对象数量
eternal 设置缓存中的对象是否永远不过期
overflowToDisk 把溢出的对象存放到硬盘上
timeToIdleSeconds 指定缓存对象空闲多长时间就过期,过期的对象会被清除掉
timeToLiveSeconds 指定缓存对象总的存活时间
diskPersistent 当jvm结束是是否持久化对象
diskExpiryThreadIntervalSeconds 指定专门用于清除过期对象的监听线程的轮询时间
–>
<ehcache>
<diskStore path=”D:\cache”/>
<defaultCache maxElementsInMemory=”1000″ eternal=”false” overflowToDisk=”true”
timeToIdleSeconds=”120″
timeToLiveSeconds=”180″
diskPersistent=”false”
diskExpiryThreadIntervalSeconds=”60″/>
<cache name=”cn.itcast.bean.Person” maxElementsInMemory=”100″ eternal=”false”
overflowToDisk=”true” timeToIdleSeconds=”300″ timeToLiveSeconds=”600″ diskPersistent=”false”/>
</ehcache>xxx.hbm.xml:<cache usage=”read-write” region=”xxx.xxx.xxx.xxx”/>