springboot通过HttpServletRequest接收请求参数

  sre

5fc8e7b1e10c13871.jpg_fo742.jpg

    @RequestMapping("/addUser2")
    public String addUser2(HttpServletRequest request) {
        String username=request.getParameter("username");
        String password=request.getParameter("password");
        System.out.println("username is:"+username);
        System.out.println("password is:"+password);
        return "demo/index";
    }

LEAVE A COMMENT

Captcha Code