Today, in the case of a network disconnection, the spring Applicationcontext.xml file begins with a red fork
<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>
The root cause of the failure is that the. xsd file cannot be found
Locate the Spring-beans-4.0.5.release jar file. Unzip it into the spring-beans-4.0.5.release\org\springframework\beans\factory\xml folder
Look, there's no such. xsd file
Changed to
<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>
The Red Fork is gone, the problem is solved
Spring's XML configuration file fails