解决Multiple annotations found at this line: - schema_reference.4: Failed to read schema document '

绝地灬酷狼 2021-11-16 13:00 325阅读 0赞

今天把eclipse框架的重新搭建了一遍,但导入原先的错误时出现如下错误:

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

后来经过google查了一遍,也没有效果,但是与自己的对比了一下,发现了一个区别:

修改如下就好了:

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

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

原文:https://blog.csdn.net/i\_love\_lm/article/details/19351527

发表评论

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

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

相关阅读