javax servlet filter vs jersey filter [duplicate]
问题 This question already has an answer here : What is the difference between a Servlet filter and a Jersey filter? (1 answer) Closed yesterday . I'm planning on writing a servlet application (meant for deployment with OSGI) and use some filters for HTTP header pre-processing. While originally settled on the javax.servlet filter implementation, it occured to me that I actually don't know why/when one would choose to use that vs the Jersey ContainerRequestFilter. Granted the latter comes with some