加载顺序 ‹load-on-startup›

Exisi 2022-06-28 14:04:33
Categories: Tags:

 

​​​​​​​ 

示例

<servlet>

  <servlet-name>springMVC</servlet-name>

  <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

  <init-param>

    <param-name>contextConfigLocation</param-name>

    <param-value>classpath:dispatcher-servlet.xml</param-value>

  </init-param>

<!-- <servlet>加载的优先级 -->

  <load-on-startup>1</load-on-startup>

</servlet>

 

 

来自 <https://www.cnblogs.com/xxoome/p/5954633.html>