时间:2021-07-01 10:21:17 帮助过:20人阅读
然后修改对应的实体类,添加@DynamicInsert和@DynamicUpdate注解
@Data @Entity @DynamicInsert @DynamicUpdate public class Account { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; private String title; private BigDecimal price; private String username; private String password; private Date createTime; private Date updateTime; }
MySQL创建自动更新列
标签:标题 列表项 count col not update name sql prim