getmethod and invoke

刚看到这种用法,弄了半天,有点明白了
(俺是java菜鸟

 Method method = null;
 String methodName = mapping.getParameter();;
 method = form.getClass();.getMethod(methodName, null);;
 forward = (String); method.invoke(form, null);;

你可能感兴趣的:(java)