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>>然后依次进行点击

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

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

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

上一篇:Linux~centos上安装.netcore,HelloWorld归来!


下一篇:在nuxt中加入element-ui插件遇到的问题