spring boot format date

56

the spring annotation for datetimeformat pattern -

@Entity
@Table(name = "pets")
public class Pet extends NamedEntity {
  @DateTimeFormat(pattern = "yyyy-MM-dd")
  private LocalDate birthDate;

Comments

Submit
0 Comments