如何解决这个cvc-elt.1问题?
/*文件名为“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>