web.xml 关于web-app_2_5.xsd 报错 的解决方案

报错信息提示:
Referenced file contains errors (http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd). For more information, right click on the message in the Problems View and select “Show Details…”

报错前web.xml内容:

<?xml version="1.0" encoding="UTF-8"?>
-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
  -name>SSM-easymall-1-name>
  
-app>

修改内容:将http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd中的java.sun.com替换成xmlns.jcp.org

你可能感兴趣的:(Java)