1、点击Window--Preference
2、搜索xml c
3、点击XML Catalog
4、选择User Specified Entries后,点击Add
5、选择xsd文件
6、配置好Schema Location后,点击OK即可