system-sekkei/isolating-the-domain

生年月日のValidationを追加

Closed this issue · 2 comments

利用者の新規登録画面で以下のエラーが発生したので、Validationパターンを追加する。

Failed to convert property value of type java.lang.String to required type java.time.LocalDate for property dateOfBirth.value; nested exception is 
org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [@javax.validation.constraints.NotNull 
@org.springframework.format.annotation.DateTimeFormat java.time.LocalDate] for value aaa; nested exception is java.lang.IllegalArgumentException: Parse attempt failed for value [aaa]

@takasp これ、"aaa" を入力するとエラーになるという報告ですよね? 再現できないんですけど...

@masuda220
別の2台のPCでそれぞれ確認したところ、おっしゃる通り適切なメッセージが表示されました。
私のPCの環境依存の問題だったようです。
失礼しました。
このissueはクローズします。