是<;启动时的负载>;Java Web应用程序部署描述符中的servlet是可选的吗?

是<;启动时的负载>;Java Web应用程序部署描述符中的servlet是可选的吗?,java,servlets,Java,Servlets,对于Java Web应用程序部署描述符(Web-INF/Web.xml)中的定义,元素是可选的吗?是 例如,他说 启动时加载元素表示 应加载servlet(实例化并具有 它的init()在web启动时被调用 应用这些文件的可选内容 元素必须是一个整数,指示中的顺序 应该加载哪个servlet。如果值 是负整数,或者元素不是 现在,容器可以自由加载servlet 只要它愿意。如果该值为正 整数或0,容器必须加载并 在应用程序运行时初始化servlet 部署。集装箱必须保证: 加载带有较低整数标记

对于Java Web应用程序部署描述符(Web-INF/Web.xml)中的
定义,元素
是可选的吗?

例如,他说


启动时加载元素表示
应加载servlet(实例化并具有
它的init()在web启动时被调用
应用这些文件的可选内容
元素必须是一个整数,指示中的顺序
应该加载哪个servlet。如果值
是负整数,或者元素不是
现在,容器可以自由加载servlet
只要它愿意。如果该值为正
整数或0,容器必须加载并
在应用程序运行时初始化servlet
部署。集装箱必须保证:
加载带有较低整数标记的servlet
在用更高整数标记的servlet之前。这个
集装箱可以选择货物的装载顺序
Servlet具有相同的启动负载值。

例如,他说


启动时加载元素表示
应加载servlet(实例化并具有
它的init()在web启动时被调用
应用这些文件的可选内容
元素必须是一个整数,指示中的顺序
应该加载哪个servlet。如果值
是负整数,或者元素不是
现在,容器可以自由加载servlet
只要它愿意。如果该值为正
整数或0,容器必须加载并
在应用程序运行时初始化servlet
部署。集装箱必须保证:
加载带有较低整数标记的servlet
在用更高整数标记的servlet之前。这个
集装箱可以选择货物的装载顺序
Servlet具有相同的启动负载值。
<xsd:element name="load-on-startup"
       type="j2ee:xsdIntegerType"
       minOccurs="0">
<xsd:annotation>
  <xsd:documentation>

    The load-on-startup element indicates that this
    servlet should be loaded (instantiated and have
    its init() called) on the startup of the web
    application. The optional contents of these
    element must be an integer indicating the order in
    which the servlet should be loaded. If the value
    is a negative integer, or the element is not
    present, the container is free to load the servlet
    whenever it chooses. If the value is a positive
    integer or 0, the container must load and
    initialize the servlet as the application is
    deployed. The container must guarantee that
    servlets marked with lower integers are loaded
    before servlets marked with higher integers. The
    container may choose the order of loading of
    servlets with the same load-on-start-up value.

  </xsd:documentation>
</xsd:annotation>
  </xsd:element>