DTKMbd.jpg
原因可能:
1、XML内容不正确,比如多个空格,换行,注释不正确等;
2、使用Stream读取流文件不正确。

<!-- maxEntriesLocalHeap:堆内存中最大缓存对象数,0没有限制 -->;
<!-- maxElementsInMemory: 在内存中缓存的element的最大数目。 -->;
<!-- eternal:elements是否永久有效,如果为true,timeouts将被忽略,element将永不过期 -->;
<!-- timeToIdleSeconds:失效前的空闲秒数,当eternal为false时,这个属性才有效,0为不限制 -->;
<!-- timeToLiveSeconds:失效前的存活秒数,创建时间到失效时间的间隔为存活时间,当eternal为false时,这个属性才有效,0为不限制 -->;
<!-- overflowToDisk: 如果内存中数据超过内存限制,是否要缓存到磁盘上 -->;
<!-- statistics:是否收集统计信息。如果需要监控缓存使用情况,应该打开这个选项。默认为关闭(统计会影响性能)。设置statistics="true"开启统计 -->;

<!-- 默认缓存 -->;
<defaultCache
    maxElementsInMemory="10000"
    eternal="false"
    timeToIdleSeconds="120"
    timeToLiveSeconds="120"
    overflowToDisk="false"
    diskPersistent="false"
    diskExpiryThreadIntervalSeconds="120"
    />;

<!-- 登录记录缓存锁定60分钟 -->;
<cache name="passwordRetryCache"
    maxEntriesLocalHeap="2000"
    eternal="false"
    timeToIdleSeconds="3600"
    timeToLiveSeconds="0"
    overflowToDisk="false"
    statistics="true">;
</cache>;

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code