sping mvc 的报错


Multiple annotations found at this line:
    - cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 
     'context:component-scan'.
    - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/context/
     spring-context.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element 
     of the document is not <xsd:schema>.

img


显示找不到,应该怎么解决啊

xmlns是否导入? 或者被扫描?

【相关推荐】



  • 你可以参考下这个问题的回答, 看看是否对你有帮助, 链接: https://ask.csdn.net/questions/746354
  • 除此之外, 这篇博客: SpringBoot整合Sping MVC中的 修改打包方式 部分也许能够解决你的问题, 你可以仔细阅读以下内容或跳转源博客中阅读:
    <project>
         ...
        <packaging>war</packaging>
         ...
    </project>
    

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^