在配置web.xml的时候会出现 cvc-complex-type.2.4.a: Invalid content was found starting with element 错误
只需要改一个约束就好了
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
version="3.0" metadata-complete="false">
<!-- http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html
http://java.sun.com/xml/ns/javaee
-->
改有以后就好了