项目框架springboot2.0我写了父类BaseController里面自动注入request和responsepublicclassBaseController{@AutowiredpublicHttpServletRequestrequest;@AutowiredpublicHttpServletResponseresponse;}IndexController都继承BaseControllerpublicclassIndexControllerextendsBaseController{@RequestMapping("/index")publicStringindex(Modelmodel){return"index";}@RequestMapping("login")publicStringlogin()throwsServletException,IOException{request.getRequestDispatcher("/admin/index").forward(request,response);returnnull;}index页面,没有任何数据操作,纯一个静态页面500TEST