Closed flacks closed 4 years ago
serv.getClass().getMethod("doGet", HttpServletRequest.class, HttpServletResponse.class).invoke(request, response);
is missing serv as the first argument of invoke(), since doGet() is overridden and cannot be static. Correct call is:
serv
invoke()
doGet()
serv.getClass().getMethod("doGet", HttpServletRequest.class, HttpServletResponse.class).invoke(serv, request, response);
is missing
serv
as the first argument ofinvoke()
, sincedoGet()
is overridden and cannot be static. Correct call is: