Adding @Provider when using Spring with jersey

淺唱寂寞╮ 提交于 2019-12-08 13:37:56

问题


We are working mainly with Spring application integrating jersey, we can add @Provider for Exception Providers and Filters (as ContainerRequestFilter)

Can adding @Provider cause problems while using Spring's initialization AnnotationConfigWebApplicationContext or it will be simply ignored?

I didn't find any @Provider in Spring with Jersey tutorial of @PaulSamsotha

I understand @Provider meaning, Currently we aren't using @Provider (and maybe have no reason to)

Marks an implementation of an extension interface that should be discoverable by JAX-RS runtime during a provider scanning phase.

Is @Provider redundant when using Spring managed beans?

来源:https://stackoverflow.com/questions/54145845/adding-provider-when-using-spring-with-jersey

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!