How the XML file for spring in Eclipse automatically introduces an XSD

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.