In Jakarta EE, web filter priority (execution order) is determined by the order of <filter-mapping> elements in web.xml, or by alphabetical class name order when using @WebFilter annotations.
Jakarta EE offers the annotation @Priority to order other elements like Jakarta REST ContainerRequestFilter or the @Interceptor.
I would like to suggest that servlets should have the same capability in general.
I searched for old issues and found nothing related to @Priority or @WebFilter.
In Jakarta EE, web filter priority (execution order) is determined by the order of
<filter-mapping>elements inweb.xml, or by alphabetical class name order when using@WebFilterannotations.Jakarta EE offers the annotation
@Priorityto order other elements like Jakarta RESTContainerRequestFilteror the@Interceptor.I would like to suggest that servlets should have the same capability in general.
I searched for old issues and found nothing related to
@Priorityor@WebFilter.