migrate jersey to spring boot however blocking by filters

只愿长相守 提交于 2019-12-25 07:49:56

问题


I need to migrate our project from jersey to spring boot because of business requirements.

However, there are lots of filters like below,

public class BasicFilter implements ContainerRequestFilter, ContainerResponseFilter { {
    public void filter(ContainerRequestContext containerRequestContext) throws IOException {
    }
    // ...
}

I think it should be regarded as HandlerInterceptor in spring, as you known, I can rewrite these filters following spring rules, but it very very heavy and error-prone, so, is there any way to integrate with these filter easily without overwriting?

Highly appreciated for your suggestion.

来源:https://stackoverflow.com/questions/41605057/migrate-jersey-to-spring-boot-however-blocking-by-filters

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