grails 中有审计跟踪的标准方法吗?

发布于 2024-07-19 02:13:52 字数 132 浏览 3 评论 0原文

是否有 grails 插件或标准方法来管理域的 created_bycreated_onupdated_byupdated_on 字段目的?

Is there a grails plugin or standard way of managing the created_by, created_on, updated_by, updated_on fields for a domain object?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

暖心男生 2024-07-26 02:13:52

如果您将 dateCreated 和 lastUpdated 声明为 Date,它们将由 grails 自动维护。
您可以使用 Grails 审核日志记录插件 在不同的安全性下记录经过身份验证的用户系统。

If you declare dateCreated and lastUpdated as Date they wil be maintained automatically by grails.
You can use the Grails Audit Logging Plugin to log the authenticated user under different security systems.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文