Rest Filter : registered in SERVER runtime does not implement any provider interfaces applicable in the SERVER runtime

柔情痞子 提交于 2019-12-05 13:41:50

This has been reported as an issue in Jersey. See Jersey issue #3700.

With Jersey 2.26 the warning message is triggered if you register an instantiated resource object directly on a ResourceConfig. However, the warning is intentional.

You can register a class instead of an instance. Or you can configure the resource via an AbstractBinder and a Feature.

If the warning actually originates from a third-party library registering a resource instance on a ResourceConfig, you can work around it by suppressing log messages from the org.glassfish.jersey.internal.inject.Providers logger as recommended in the Jersey ticket.

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