Class clazz = this.getClass();
Method method = clazz.getMethod(mt,HttpRequest.calss,HttpRespose.class); //mt为方法名,后面为参数类型
String path = method.invoke(this,request,response); //this为对象,后面为传递给方法的参数
Class clazz = this.getClass();
Method method = clazz.getMethod(mt,HttpRequest.calss,HttpRespose.class); //mt为方法名,后面为参数类型
String path = method.invoke(this,request,response); //this为对象,后面为传递给方法的参数