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>


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM