Id自增 @Id @GeneratedValue private Integer id; 日期格式化,不然前端传对象到Controller时会报错 Entity里面日期写: @DateTimeFormat(pattern = "yyyy-MM-dd")