您的位置:首页 > Web前端

No grammar constraints (DTD or XML Schema) referenced in the document.

2016-12-18 03:12 591 查看
方法1

关闭XML验证

工具栏:windows => preferences => xml => xml files => validation => Indicate when no grammar is specified:选择Ignore即可。

方法2

添加 内容如下

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd">

方法3(spring配置文件会报错)

添加 内容如下

<!DOCTYPE xml>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐