「Spring MVC」HttpServletRequestでリクエストパラメータの取得方法

Javaコード
@RequestMapping(“/addUserInfo")
public String addUserInfo(HttpServletRequest request) {
String userName = request.getParameter(“userName");
String password = request.getParameter(“password");
System.out.println(“ユーザ名:"+userName);
System.out.println(“パスワード:"+password);
return “/user/success";
}

Java

Posted by arkgame