问题描述

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>

相关文章:

  • 2022-01-07
  • 2021-11-16
  • 2022-12-23
  • 2022-01-07
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-14
  • 2022-12-23
  • 2021-12-27
  • 2022-02-08
  • 2022-12-23
  • 2021-10-29
相关资源
相似解决方案