1、首先將 ehcache.xml 的 <ehcache> 元素的 xsi:noNamespaceSchemaLocation 屬性進(jìn)行修改,本例為 xsi:noNamespaceSchemaLocation="http://ehcache.xsd"
2、打開eclipse,依次點(diǎn)擊 Window -> Preferences -> XML -> XML Catalog
-> User Specified Entries ,點(diǎn)擊 Add 按鈕,選擇 Catalog Entry ,在 Location 輸入 ehcache.xsd 路徑,key type 選擇 Schema location ,key 值填寫步驟1中設(shè)置的xsi:noNamespaceSchemaLocation屬性值http://ehcache.xsd ,點(diǎn)擊ok就配置好了,現(xiàn)在可以提示了。