The method getParameter(String) is undefined for the type HttpServletResponse项目报错

String username = response.getParameter("username");运行结果及报错内容
The method getParameter(String) is undefined for the type HttpServletResponse

你方法名写错了吧。是getParameter()吗