Because of the use of XML node hints in XML files, the introduction of URLs is generally used, such as
<beans xmlns= "Http://www.springframework.org/schema/beans"
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
xmlns:context= "Http://www.springframework.org/schema/context"
xmlns:tx= "Http://www.springframework.org/schema/tx"
xsi:schemalocation= "Http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/ Spring-beans-3.1.xsd
Http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
Http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd ">
This method can only be used when the network is connected, and in the case of network instability, smart hints are poor, therefore, by setting up eclipse to local support for the schema, you can solve the above problem.
The following is a set of http://www.springframework.org/schema/context/spring-context-3.1.xsd as an example:
First step: Select Windows-->preferences
Second step: Find the drop-down list xml-->xml category, click on the XML category, a new interface appears in the right section
Third step: Select User Specified Entries, click the Add button, pop up a dialog box
Fourth step: Find the XSD file and select it, the general XSD file is placed in D:\EngineerSoftware\java_tool\spring-framework-3.2.0.rc2-dist\ The Spring-framework-3.2.0.rc2\schema file.
Fifth step: Modify the Key Type drop-down option in namespace name for schema location
Sixth step: The file name of the corresponding schema is added to the Key edit box after the path. For example, after importing the schema file path is HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP, after the path to add \spring-aop-3.2.xsd, click OK, it is done.
Local support for schema in Eclipse:xml file