今天在断网的情况下,spring的applicationContext.xml文件开头部分出现红叉

<span style="font-size:18px;"><?

xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/<span style="color:#ff0000;">spring-beans.xsd</span>"></span>


出现故障的根本原因是找不到.xsd文件

找到spring-beans-4.0.5.RELEASE的jar文件。解压进去到spring-beans-4.0.5.RELEASE\org\springframework\beans\factory\xml文件夹下

看果然没有这个.xsd文件

改动为

<span style="font-size:18px;"><?xml version="1.0" encoding="UTF-8"?

> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/<span style="color:#ff0000;">spring-beans4.0.xsd</span>"></span>


红叉就不见了,问题解决

相关文章:

  • 2021-10-29
  • 2021-05-29
  • 2021-11-08
  • 2022-12-23
  • 2021-05-08
  • 2022-01-31
  • 2022-12-23
  • 2021-05-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-06
  • 2022-12-23
  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
相关资源
相似解决方案