• 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下面,红叉消失:

  • 相关阅读:
    Serialize&Deserialize
    Async&Await
    Generic
    Enum
    Array
    String
    Nullable
    Collection
    Class&Struct
    Interface
  • 原文地址:https://www.cnblogs.com/xiaoyao-001/p/8120003.html
Copyright © 2020-2023  润新知