If we define webapp specific servlet filters in WAR's own web.xml
, then the order of execution of the filters will be the same as the order in which they are defined in the web.xml
.
But, if we define those filters using @WebFilter
annotation, what is the order of execution of filters, and how can we determine the order of execution?