No grammar constraints (DTD or XML Schema) referenced in the document. java项目xml文件报错或者出现警告

有的时候我们在做java 项目的时候,当打开eclipse时,xml文件会出现警告。

这里一般情况下我们不会去管他,因为No grammar constraints (DTD or XML Schema) referenced in the document.这个警告不影响项目的运行。

 如果大家不想看到这种警告,可以在eclipse中进行设置。

  1. 方法:常用方法   关闭XML验证  
  2. 工具栏:windows => preferences => xml => xml files => validation => Indicate when no grammar is specified:选择Ignore即可。

猜你喜欢

转载自blog.csdn.net/qq_37651252/article/details/88354931