Method setMethod = request.getClass().getMethod(methodName, paramType);
setMethod.invoke(request, null);
-------------------------------------------------------------------------------------------------------
void setName(String name){
this.name = name;
}
正如各位大佬看到的,我这里获得一个方法,这个方法的入参是 String 现在,想要给 setName 通过 invoke 回调函数传一个 null 的入参。但是 invoke()方法的第二个入参如果是 null 的话,表示这个方法没有入参, 求各位大佬支招。