假設我有這樣的: public class Foo<T> {
@Inject public Foo(Class<T> tClass);
}
public class FooProvider<T> implements Provider<Foo<T>> {
@Inject private TypeLiteral<T> type;
@Override
pu
我遇到了一個錯誤,試圖讓guice連線。下面是轉載我看到的問題的一些示例代碼: public class GuiceGenerics<K, V> {
public static interface Foo<K, V> {
}
public static class FooImpl<K, V> implements Foo<K, V> {
}