接口 ServletContextInitializer

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      voidonStartup​(javax.servlet.ServletContext servletContext)
      Configure the given ServletContext with any servlets, filters, listeners context-params and attributes necessary for initialization.
    • 方法详细资料

      • onStartup

        void onStartup​(javax.servlet.ServletContext servletContext)
                throws javax.servlet.ServletException
        Configure the given ServletContext with any servlets, filters, listeners context-params and attributes necessary for initialization.
        参数:
        servletContext - the ServletContext to initialize
        抛出:
        javax.servlet.ServletException - if any call against the given ServletContext throws a ServletException