web.xml的配置过程中也需要注意顺序问题

配置WEB.XML的配置文件过程中发现:

直接红叉,鼠标放在红叉出信息如下:

 cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://

java.sun.com/xml/ns/javaee":enabled, "http://java.sun.com/xml/ns/javaee":async-supported, "http://
java.sun.com/xml/ns/javaee":run-as, "http://java.sun.com/xml/ns/javaee":security-role-ref, "http://
java.sun.com/xml/ns/javaee":multipart-config}' is expected.

<load-on-startup>1</load-on-startup>放在init-param下面,红叉消失:

 

posted @ 2017-12-26 21:00  醉逍遥_001  阅读(407)  评论(0编辑  收藏  举报