Spring 3.2 Date time format

后端 未结 5 1678
情话喂你
情话喂你 2020-12-06 06:18

I am using standalone Spring framework and I want to implement Spring 3.2 @DateTimeFormat(pattern = \"dd/mm/yyyy\"), but not getting the expected output.

My code sni

5条回答
  •  情书的邮戳
    2020-12-06 07:02

    Take a look at your imports in your class. Your date type should be java.util.Date. It might be inheriting from a different class, such as, java.sql.Date.

提交回复
热议问题