




Content-Type: application/json
{
"email": "spring@example.com",
"password":"123456"
}
POST 전송에서의 content-type
이 content-type으로 이루어진 body는 browser에서 데이터를 자동으로 encoding된다.
@Nullable
protected String obtainPassword(HttpServletRequest request) {
return request.getParameter(this.passwordParameter);
}
@Nullable
protected String obtainUsername(HttpServletRequest request) {
return request.getParameter(this.usernameParameter);
}
content-type : application / x-www.form-urlencodedformLogin에 대해서 아래 Ref가 많이 도움되었다.
Custom하는 내용도 다룬다🌟