Skip to main content

One post tagged with "webflux"

View All Tags

WebFlux 에서 Date type 을 url parameter 로 사용하기

· 7 min read
Haril Song
Owner, Software Engineer at 42dot

Overview

LocalDateTime 같은 시간 형식을 url parameter 로 사용할 경우 기본 포맷에 맞지 않는다면 다음과 같은 에러 메세지를 보게 됩니다.

Exception: Failed to convert value of type 'java.lang.String' to required type 'java.time.LocalDateTime';

특정 포맷도 convert 할 수 있도록 하기 위해서는 어떤 설정을 해줘야 할까요? 이번 글에서는 변환 방법에 대해서 알아봅니다.