public interface test{
void do();
}
public Class testImp
{
@Autowired
ApplicationContext appContext;
public T getBeanWithType(T type){
@Override
public T T getRepository(T type) {
return (T) appContext.getBean(type);
}
pulic void getType(T type){
return getBeanWithType(test.Class)
}
}