-
카테고리
-
세부 분야
백엔드
-
해결 여부
미해결
REST BindingResult 유효성
23.02.06 12:11 작성 조회수 147
0
BindingResult 를 rest로 하진 않았는데, BindingResult 한다면return값이 html주소 이동인데 어떻게 해야하는지와
@Size와 같은 @Validated 유효성검사를 할때 에러메시지 커스텀과
if (bindingResult.hasErrors()) {
return "login/loginForm";
}
그냥 @Controller는 .html이동인데 rest는 어떻게 해야할지 모르겠습니다.
답변을 작성해보세요.
답변 1