配置springmvc的"mvc:annotation-driven"时提示标签错误

配置springmvc的""时提示标签错误

The matching wildcard is strict,but not declaration can be found for element 'mvc:annotation-driven'

很明显问题是不识别""这个标签,肯定是xml约束文件引入的问题。

修改前:




    
    

修改后: 




    
    

修改地方:增加mvc约束文件

xmlns:mvc="http://www.springframework.org/schema/mvc"

 

你可能感兴趣的:(spring,mvc,后端)