0

我尝试按照这种方法https://github.com/HubSpot/dropwizard-guicier使用dropwizard-guicier将 Google Guice 引入我的 Dropwizard 2.0 项目,但出现错误

java.lang.IncompatibleClassChangeError: 
Class org.glassfish.jersey.message.internal.MessagingBinders$HeaderDelegateProviders does not implement the requested interface org.glassfish.hk2.utilities.Binder

同样的错误也被抛出dropwizard-guice https://github.com/HubSpot/dropwizard-guice

有谁知道可能是根本原因以及如何解决它?

4

1 回答 1

0

看起来上述两个库都已过时,还有另一个 dropwizard-guicey https://github.com/xvik/dropwizard-guicey适用于我的情况

于 2020-12-15T11:37:29.393 回答