728x90
@RequestParam @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate date
Json에 입력한 날짜를 String으로 인식하여 LocalDate와 연결이 되지 않는다.
컨트롤러에 해당 매핑을 추가하면 정상적으로 데이터를 조회할 수 있다.
728x90
'Trouble Shootings' 카테고리의 다른 글
[Spring Boot & MySQL] 날짜 타입 저장하기 (LocalDateTime, Timestamp) (0) | 2023.01.31 |
---|---|
[젠킨스/도커] 리눅스 Docker 실행 오류 (0) | 2022.12.26 |
[스프링] Spring messages.properties 한글 인코딩 (0) | 2022.12.23 |
[Vue.js] vue 이미지 src 동적 연결 (v-bind) (0) | 2022.11.20 |
[Vue.js] .env .local 값을 못 읽을 때 (403 error) (0) | 2022.11.20 |