When you configure spring development, you need to configure the following description:
<beans Http://www.springframework.org/schema/beans
Xmlns:xsi= "Http://www.w3.org/2001/XMLSchema-instance"
xmlns:context= "Http://www.springframework.org/schema/context"
................... The rest of the omission does not write, too troublesome, in short know is here on the line
>
1.window->preference->xml->xml Catalog
2. Select User specificed Entries, then click Add
3. Click File System to find the. xsd or. dtd file from your Springframe-release-schema;
Key Type Select schema location
Key is added after the generated path, such as:/spring-beans-4.1.6.xsd
Add everything you need in a similar way, so it will be convenient to use later.
How to generate a description:
Under SRC Click new->xml-> to select the Create XML file from the XML Schema file->next-> choose Select XML Catalog entry:
Then find the XML Catalog you added; The General choice is beans
If you need to add something else, you can click Add on the right
prefix is generally defined as the name of the XSD;
Namespace name is usually the folder path where the file resides;
Location hint will be automatically generated when added;
When you click OK, the one you added above will appear similar to the beginning of the article, unlike the one you need. xsd is different;
This I have been for a long time, do not know why, after installing the Spring IDE still can not check automatically add window, really depressed, this solution is also good, but still very cumbersome;
If there is know how to solve, may wish to write an article let us these techniques small white also long insight;
All right.
This article is from the "Programming Development" blog, be sure to keep this source http://w7984.blog.51cto.com/5147254/1852580
How the XML file for spring in Eclipse automatically introduces an XSD