Servlet.init() and Filter.init() call sequence

前端 未结 4 396
[愿得一人]
[愿得一人] 2021-01-31 16:48

In which order are Servlet.init() and Filter.init() methods called in java web application? Which one is called first? Are all Servlet.init() methods called before than any Filt

4条回答
  •  余生分开走
    2021-01-31 17:27

    Beware. I've been witnessing concurrent invocation of Filter.init() and Filter.doFilter() on the same instance. I'm still shocked and can't recover. Its' name is Jetty.

提交回复
热议问题