반응형
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 |
29 | 30 |
Tags
- 쿠키의 정의
- 구글 보안 api 활용
- 필터vs인터셉터
- 세션의 정의
- optional
- BindingResult
- controller
- 유연한 컨트롤러1 - v5
- 세션vs쿠키
- 인터셉터의 정의
- spring MVC
- spring
- @Controller
- jpa
- 김영한
- 쿠키란
- Validation
- filter vs interceptor
- springSecurityFilterChain 오류
- Testcode
- SpringMVC
- 401오류
- 세션이란
- application-properties
- MVC
- n+1
- java.lang.AssertionError
- .orelseThrow
- abap value in field Data Class error
- 필터의 정의
Archives
- Today
- Total
목록rejectValue (1)
ABAP DUMP ERROR 24시
BindingResult , add FieldError=-> rejectValue 변환
# 인프런 김영한의 스프링 MVC 2편 - 백엔드 웹 개발 핵심 기술을 개인적으로 정리한 글입니다. 정리 bindingResult.addError(new FieldError("item", "price", item.getPrice(), false, new String[]{"range.item.price"}, new Object[]{1000, 1000000}, null)); addError(new FieldError()) 대신에 rejectValue를 사용하자 bindingResult.rejectValue("price", "range", new Object[]{1000, 1000000}, null); 장점 자세히 보면 item 이라는 객체의 생략 item.getPrice라는 에러 보관함 생략 new Stri..
[WEB]Back-end/Spring MVC
2022. 2. 21. 16:06