private static Class<?> getObjFromIoc(Class<?> type){
return Mvcs.getIoc().get(type.getClass());
}
想写一个静态函数,获取Ioc对象,执行getObjFromIoc(A.class)后报错(A是@IocBean),水平有限,望指导
get(java.lang.Class<T>)in Ioc cannot be applied to(java.lang.Class<T>)
reason: no instance(s) of type variable(s) exist so that T conforms to Object inference variable T has incompatible bounds: equality constraints: T upper bounds: Object
@wendal 搞定了