解决Multiple annotations found at this line:- schema_reference.4: Failed to read schema document(通俗易懂)

秒速五厘米 2021-12-17 11:53 353阅读 0赞

解决 :Multiple annotations found at this line:

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

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3NpbmF0XzIxODQzMDQ3_size_16_color_FFFFFF_t_70

这里要修改相对于的架包版本 4.0、4.1之类的

只要修改版本就好了,具体原因我也没有找到,估计是spring的问题,记录下来,希望帮到有需要得人。

发表评论

表情:
评论列表 (有 0 条评论,353人围观)

还没有评论,来说两句吧...

相关阅读