如何解决这个cvc-elt.1问题?

sangoukumusong 2014-07-07 06:24:28
/*文件名为“ehcache.xml”*/
/*第三行出现cvc-elt.1的报错,说找不到ehcache的声明*/
/*平台是Eclipse2014,jre1.7*/
/*网上搜到的都是解决加载不了spring里面的bean的那种情况,我这个不一样,解决方法貌似没用。*/

<?xml version="1.0" encoding="UTF-8"?>
<ehcache xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ehcache.org/ehcache.xsd" updateCheck="false">

<defaultCache maxElementsInMemory="10000" eternal="false"
overflowToDisk="true" timeToIdleSeconds="500" timeToLiveSeconds="1000"
diskPersistent="false" diskExpiryThreadIntervalSeconds="120" />

<cache name="shiroAuthorizationCache"
maxElementsInMemory="10000"
eternal="false"
overflowToDisk="true"
diskPersistent="true"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
diskExpiryThreadIntervalSeconds="120" />
<!-- sessioncache -->
<!-- <cache name="shiro-activeSessionCache"
maxElementsInMemory="10000"
eternal="false"
overflowToDisk="true"
diskPersistent="true"
timeToIdleSeconds="120"
timeToLiveSeconds="120"
diskExpiryThreadIntervalSeconds="120" /> -->

<!-- 权限cache,默认命名shiro.authorizationCache -->
<!-- <cache name="shiro.authorizationCache"
maxElementsInMemory="100"
eternal="false"
timeToLiveSeconds="120"
overflowToDisk="true" /> -->
</ehcache>
...全文
93 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧