728x90
//아이디 비밀번호 받는 함수
@RequestMapping(value = "/login", method = RequestMethod.POST)
public String login(HttpServletRequest httpServletRequest){
try{
System.out.println("RequestMethod.post");
String id = httpServletRequest.getParameter("id");
System.out.println("id : " + id);
String pw = httpServletRequest.getParameter("pw");
System.out.println("pw : " + pw);
return "S01";
}catch (Exception e) {
return "E01";
}
}
728x90
'Server > Spring Boot' 카테고리의 다른 글
SpringBoot #4 Spring boot - JDBC - MySQL (0) | 2020.04.30 |
---|---|
SpringBoot #3 TestCode, JPA, h2, API (0) | 2020.04.25 |
SpringBoot #2 Hello World 삽질 (2) | 2020.04.22 |
SpringBoot #1 개발환경 세팅(Mac) (1) | 2020.04.21 |
댓글