首页 > 技术文章 > 解决上一篇bean.xml中<bean>标签报错“ Error while downloading 'http://www.springframework.org/schema/beans/spring-beans.xsd........”

zhangyuanbo 2019-07-26 15:19 原文

在xml文件中,头部报错如题

一开始查询,说是头部少了“<?xml version="1.0" encoding="UTF-8"?>”,但是我并没有这个问题,可能有人会遇到。

而且这个错并不影响项目的运行,当然也有可能是我没注意到或者没有写到相关引用的代码。

现在才知道,原来是因为工具较新,可能缺少标签,加上<xml-body>标签就行了

这样就好了

 

推荐阅读