在写spring-mvc配置文件时,报

The matching wildcard is strict, but no declaration can be found for element ‘mvc:default-servlet-handler’.

spring-mvc.xml报The matching wildcard is strict, but no declaration can be found for element 'mvc:def

这个问题其实是命名空间引用错误了,使用idea写标签时,自动添加了命名空间:

spring-mvc.xml报The matching wildcard is strict, but no declaration can be found for element 'mvc:def

将cache改为mvc就可以了!

相关文章: