파이널 프로젝트 과정 중 팀원이 만든 화면에서 알 수 없는 400 에러를 맞았다.
알고보면 별 거 아닐 것 같은 에러에 오타도 찾아보고(몇 개 발견함) 코드도 바꿔보고 안돼서 검색도 열심히 해봤는데 여전히 안됐다.
컨트롤러 확인 해 봤나요? yes...
파라메터 값 제대로 지정해 준 거 맞죠? yes...
서비스 확인 해 봤나요? yes...
jsp는요? yes...
mapper는? yes...
확인 안 해본 거 딱 하나 vo 파일! 거기가 문제였다.
사실 보면서도 뭐가 잘못된지 몰랐는데 @DateTimeFormat은 저렇게 쓰는 것이 아니란다.
@DateTimeFormat(pattern = "yyyyMMdd")
이렇게 쓸 것!
'TIL' 카테고리의 다른 글
[Spring] parameter 두개 이상 mapper로 넘겨주기 (0) | 2021.01.12 |
---|---|
[JavaScript] append에서 onclick 변수 전달 하기 (0) | 2021.01.11 |
[JavaScript] jQuery 셀렉터 value undefined (0) | 2021.01.10 |
[Spring] MyBatisSystemException (0) | 2021.01.09 |
[JavaScript] 슬라이더 안에 슬라이더 (0) | 2021.01.08 |