Jersey Request Filter only on certain URI

后端 未结 3 509
天涯浪人
天涯浪人 2020-12-08 19:40

I am trying to do some validation on requests coming into my service using the ContainerRequestFilter. Everything is working fine, however there is one problem

3条回答
  •  爱一瞬间的悲伤
    2020-12-08 20:40

    When we use @NameBinding we need to remove @PreMatching annotation from the Filter. @PreMatching causes all the requests go through the filter.

提交回复
热议问题