What's the difference between @CreationTimestamp and @CreatedDate in Spring boot jpa?

前端 未结 0 1447
粉色の甜心
粉色の甜心 2021-02-11 12:40
@Entity
public class Foo {
    @CreatedDate
    private LocalDateTime createdDateTime;

    @CreationTimestamp
    private LocalDateTime creationTimestamp;
}


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题