IDEA配置xml文件头报错:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)

遇到问题:
配置XML文件时,头文件经常有url爆红的现象,虽然不影响程序运行,但还是看着别扭

出现的情况如下图:

IDEA配置xml文件头报错:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)_第1张图片

解决方案:

files->settings->Languages & Frameworks->Schemas and DTDs
点击加号,将爆红的URL复制进来就解决了~
IDEA配置xml文件头报错:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)_第2张图片

IDEA配置xml文件头报错:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)_第3张图片

你可能感兴趣的