Servlet配置

<servlet>

    <servlet-name>action</servlet-name>

    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>

    <init-param>

      <param-name>config</param-name>

      <param-value>/WEB-INF/struts-config.xml</param-value>

    </init-param>

    <load-on-startup>2</load-on-startup>    // servlet载入优先级,<0则在访问的时候实例化,>0则在容器初始化时实例化,=1最先初始化

 </servlet>

你可能感兴趣的:(servlet)