cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'

Posted 大象O无形

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'相关的知识,希望对你有一定的参考价值。

cvc-complex-type.2.4.a: Invalid content was found starting with element ‘display-name‘. One of ‘{"http://xmlns.jcp.org/xml/ns/javaee":servlet-class, "http://xmlns.jcp.org/xml/ns/javaee":jsp-file, "http://xmlns.jcp.org/xml/ns/javaee":init-param, "http://xmlns.jcp.org/xml/ns/javaee":load-on-startup, "http://xmlns.jcp.org/xml/ns/javaee":enabled, "http://xmlns.jcp.org/xml/ns/javaee":async-supported, "http://xmlns.jcp.org/xml/ns/javaee":run-as, "http://xmlns.jcp.org/xml/ns/javaee":security-role-ref, "http://xmlns.jcp.org/xml/ns/javaee":multipart-config}‘ is expected.

 

解决办法:

<display-name>需要放在<servlet-name>的前面

以上是关于cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'的主要内容,如果未能解决你的问题,请参考以下文章