Input type=“date” thymeleaf

前端 未结 2 437
温柔的废话
温柔的废话 2020-12-17 18:29

I need to add date to my entity and let the user set it in web form. This field needs to have today\'s date filled in by default.

1. 

        
2条回答
  •  别那么骄傲
    2020-12-17 19:03

    Use string instead of Date

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private String fromDate;

提交回复
热议问题