Eclipse XML不给提示解决办法

以spring3.0为例
一、进入eclipse如下菜单。每个eclipse版本可能有差异,因此可以在preferences里直接搜索XML,找到XML Catalog。
    window---preferences--XML--XML Catalog

二、在XML Catalog页面
    a.选择“Add”。
    b.选中“Catalog Entry”,
    c.在"Location"中选择本地XSD地址。如:
    "D:\spring-framework-3.2.8.RELEASE\schema\beans\spring-beans-3.0.xsd",
    d.“Key Type”选择“Schema location”。
    e.“key”填写“http://www.springframework.org/schema/beans/spring-beans-3.0.xsd”。(eclipse自动只会生成"http://www.springframework.org/schema/beans",手动加上“spring-beans-3.0.xsd”)

你可能感兴趣的:(eclipse,spring,xml)