The errors below were detected when validating the file "spring-context.xsd" via the file

一般遇到这个错误都是xml文件报错了,我们需要在eclipse中去引用

解决办法:

在jar包中找到这些xsd文件,比如说maven项目的jar包就在它的仓库里面。而且都写的有路径,可以参考下面的截图。

The errors below were detected when validating the file

我的截图中所有的xsd都不带版本号,即使是这样也会报错,于是我们需要修改这些xsd文件里面的版本号,也都去掉,这里的意思是,打开spring-context.xsd

The errors below were detected when validating the file

 

看看是不是正常了

 

 

 

 

 

你可能感兴趣的:(java编程的Bug解决,xml报错)