How to determine the order of listeners in web.xml

前端 未结 3 2027
渐次进展
渐次进展 2020-12-20 11:06

I got a bunch of servlet context listeners in my Java webapp, each of them gathering some information about the environment.

Some of them depend on information which

3条回答
  •  既然无缘
    2020-12-20 11:50

    Why is that vague? The ordering in web.xml is very specifically the order in which they are called, it's very clearly stated in the Java EE spec. It's completely OK to rely on it.

提交回复
热议问题