Eclipse 中配置ehcache 的 xsd 文件

学习经验,请多指教!

使 ehcache.xml 配置文件自动提示属性信息步骤:

1、首先将 ehcache.xml 的 <ehcache> 元素的 xsi:noNamespaceSchemaLocation 属性进行修改,本例为 xsi:noNamespaceSchemaLocation=" http://ehcache.xsd"

2、打开eclipse,依次点击 Window -> Preferences -> XML -> XML Catalog
-> User Specified Entries ,点击 Add 按钮,选择 Catalog Entry ,在 Location 输入 ehcache.xsd 路径,key type 选择 Schema location ,key 值填写步骤1中设置的xsi:noNamespaceSchemaLocation属性值 http://ehcache.xsd ,点击ok就配置好了,现在可以提示了。

猜你喜欢

转载自yanlianshou.iteye.com/blog/2263642