Eclipse配置dispatcherServlet-servlet.xml配置文件异常

版权声明:版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_43652442/article/details/84633343

The errors below were detected when validating the file "spring-context-4.3.xsd" via the file "dispatcherServlet-servlet.xml". In most cases these errors can be detected by validating "spring-context-4.3.xsd" directly. However it is possible that errors will only occur when spring-context-4.3.xsd is validated in the context of dispatcherServlet-servlet.xml.

在配置springMVC配置文件dispatcherServlet-servlet.xml时,Eclipse工具报出如题异常。

具体问题原因暂时未知,目前只找到相应的解决方案,即将配置文件中的版本号删除,如下图
原配置
原图
修改后的配置
修改后的配置
后续更新过程中,发现将配置还原,报错并不会重新出现,笔者初步认为可能是由于网络原因导致项目无法连接http://www.springframework.org/schema/context/spring-context-4.3.xsd中的地址所致,后续还原成功也是因为网络原因成功加载上配置文件了,所以没有报错。正真原因还需要后续跟踪排查

参考链接https://www.jianshu.com/p/45e1eaefcdbe

猜你喜欢

转载自blog.csdn.net/weixin_43652442/article/details/84633343