cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'.

新的错误出现  spring-mvc.xml文件

<mvc:resources mapping="/static/**" location="/static/" />
<mvc:resources mapping="/upload/**" location="/upload/" />

 

cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'mvc:resources'.

有可能是更新了settings文件以后没有update,之后的jar包下载有问题

window>>preference>>Maven>>User settings>>然后依次进行点击

 

 执行完该步骤后,右击项目,然后maven,最后update project,更新maven;

最后清理项目,project>>clean>>选中项目>>finish。OK!

posted @ 2017-02-28 17:12  猿狮人  阅读(685)  评论(0编辑  收藏  举报