操作流程:
graph LR
window-->Preferences
Preferences-->XML
XML-->XMLCatalog
Add.. 进入“Add XML Catalog Element”视图 ; 选择“Catalog Entry”
Location: xsd 文件位置
key type: Schema location
key: http://…..xsd(xml文件中的xsd路径)
(dubbo xml 提示错误为例)
错误提示:
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'dubbo:application'.
Location:C:\Users\zhiqiang.jia\Desktop\dubbo.xsd
Key type: Schema location
Key: http://code.alibabatech.com/schema/dubbo/dubbo.xsd
重新编译后正常