Jersey ContainerRequestFilter not triggered

后端 未结 10 681
囚心锁ツ
囚心锁ツ 2020-12-05 06:34

I\'m trying to use a ContainerRequestFilter to enforce some authentication on a Tomcat based Jersey application. I followed this document. Problem : the filter

10条回答
  •  悲哀的现实
    2020-12-05 07:13

    The minimum requirements to work filters with jersey:

    • add @Provider annotation to filter class
    • the namespace of filter class has to be included in 'jersey.config.server.provider.packages' init-param

    Any other settings aren't required (e.g. 'com.sun.jersey.spi.container.ContainerRequestFilters' init-param or ResourceConfig)

提交回复
热议问题