The matching wildcard is strict, but no declaration can be found for element 'context:component-scan

Description    Resource    Path    Location    Type
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'context:component-scan'.    applicationContext.xml    /bos-web/src/main/resources    line 60    XML Problem

资源路径位置类型

cvc-complex-type.2.4。c:匹配通配符是严格的,但是对于元素“context:component-scan”没有任何声明。applicationContext。第60行xml问题

解决方法:添加命名空间。

      *前提:有spring的schema文件。
          The matching wildcard is strict, but no declaration can be found for element 'context:component-scan_第1张图片

             The matching wildcard is strict, but no declaration can be found for element 'context:component-scan_第2张图片                                                                                                The matching wildcard is strict, but no declaration can be found for element 'context:component-scan_第3张图片

 

你可能感兴趣的:(The matching wildcard is strict, but no declaration can be found for element 'context:component-scan)