728x90 반응형 SMALL Cannot deserialize value of type `java.time.LocalDateTime` from String1 Cannot deserialize value of type `java.time.LocalDateTime` from String.... `0000-00-00 00:00:00` 처리 방법 JodaTime을 제외하고 Java에서 정식으로 LocalDate, LocalDateTime 이 지원되면서 여러가지로 Date, Time 을 사용하는데 편해졌다. 그런데 기존 legacy project 에서는 DateTime 의 값을 String에 담고 있으며 format은 yyyy-MM-dd HH:mm:ss 이며 이 legacy 프로젝트로 부터 값을 가져와 parsing 해야 하는 상황이 발생했다. 이런 경우 아래와 같은 오류가 발생한다. org.springframework.core.codec.DecodingException: JSON decoding error: Cannot deserialize value of type `java.time.LocalDateTime` from String \"2017-.. 2020. 6. 11. 이전 1 다음 728x90 반응형 LIST