私はいくつかの春のフォーム検証を行っていますが、私は得ています:
Failed to convert property value of type 'java.lang.String' to required type 'ja
va.util.Date' for property 'birthdate'; nested exception is java.lang.Illega
lStateException: Cannot convert value of type [java.lang.String] to required typ
e [java.util.Date] for property 'birthdate': no matching editors or conversi
on strategy found
ただし、私の modelAttribute フォームには次のものがあります。
@NotNull
@Past
@DateTimeFormat(style="S-")
private Date birthdate;
DateTimeFormat がこれを担当していると思いましたか?
hibernate-validator 4.0 を使用しています。