原因:就是因为web.xml的请求头部和要求的不一样,版本不匹配导致
如果是报错javaee.dd.xml,可以搜一个javaee的请求头,此处需要j2ee的,故改为上图所示:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
</web-app>