Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- spring security
- 스프링 시큐리티
- msa
- java
- 자바스크립트
- UUID
- 유효성검사
- 게시판 작성자를 아이디로
- 자바 ORM 표준 JPA 프로그래밍
- 공백검사
- 모던 자바스크립트 Deep Dive
- 관계형 데이터베이스
- 출처 모던 자바스크립트 Deep Dive
- 중복되지 않는 값 만들기
- ORM
- JPA
- 자바
- Thymeleaf
Archives
- Today
- Total
인지용
@Valid org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument 에러 해결 본문
에러 해결
@Valid org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument 에러 해결
인지용 2021. 12. 8. 17:34
스프링부트 2.5에서 회원가입 시 유효성 검사를 위해
@Valid를 붙여서 검사를 진행하는데
로직은 전혀 문제가 없음에도 불구하고
계속 400에러가 떴다.
원인
@Valid어노테이션이 붙은 파라미터 바로 뒤에 BindingResult가 없기 때문이다.
해결방법
@Valid어노테이션이 붙은 파라미터 바로 뒤에 BindingResult 파라미터 넣어주기
잘못된 예시
올바른 예시
출처
https://stackoverflow.com/questions/17084400/spring-error-400-during-validation
'에러 해결' 카테고리의 다른 글
Field 'id' doesn't have a default value 에러 해결 (0) | 2021.12.14 |
---|---|
junit5 failed to load applicationcontext 에러 해결 (0) | 2021.12.13 |
intellij 디렉토리 옮긴 후 클래스 import 에러 (0) | 2021.11.21 |
Mysql 프로시저 만들때 to your MySQL server version for the right syntax to use near 에러 (0) | 2021.11.10 |
Querydsl Error:java: Attempt to recreate a file for type 에러 (0) | 2021.11.08 |