java – @CreatedBy如何在Spring Data JPA中工作?
发布时间:2020-12-14 19:27:50 所属栏目:Java 来源:网络整理
导读:我在实体属性上使用了@CreatedDate,我看到它在db中插入了日期.我不明白 Spring Data JPA中@CreatedBy注释的目的是什么. 在reference documentation我读到: We provide @CreatedBy , @LastModifiedBy to capture the user who created or modified the entit
我在实体属性上使用了@CreatedDate,我看到它在db中插入了日期.我不明白
Spring Data JPA中@CreatedBy注释的目的是什么.
在reference documentation我读到:
但是如何创建和使用这样的用户呢? 解决方法
如果您已经参考了参考文档,我建议您阅读
two more paragraphs以了解有关AuditorAware以及如何使用AuditorAware的信息. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |