No grammar constraints (DTD or XML Schema) referenced in the document.
Posted wumz
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了No grammar constraints (DTD or XML Schema) referenced in the document.相关的知识,希望对你有一定的参考价值。
问题描述
web.xml 使用 Servlet4.0 版本,No grammar constraints (DTD or XML Schema) referenced in the document.
解决方法
添加 <!DOCTYPE html>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<web-app version="4.0"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd">
</web-app>
以上是关于No grammar constraints (DTD or XML Schema) referenced in the document.的主要内容,如果未能解决你的问题,请参考以下文章