[英]How Spring Boot Application to listen for a CRUD operations
I am just starting with Spring boot Web Applications, and I am in this point now I need to issue notification in the app ecosystem after CRUD Operation in database (I am using MySQL) How can I set up a listener and based on the operation to create a new notification.我刚刚从 Spring 启动 Web 应用程序开始,我现在在这一点上,我需要在数据库中的 CRUD 操作后在应用程序生态系统中发出通知(我正在使用 MySQL)我如何设置一个监听器并根据操作来创建一个新的通知。 From my search, I land on
@EntityListeners(AuditTrailListener.class)
but not sure how to use it, I will be happy to share with me some examples or to redirect me to the right place to see how to set up that kind of listener.从我的搜索中,我登陆
@EntityListeners(AuditTrailListener.class)
但不知道如何使用它,我很乐意与我分享一些示例或将我重定向到正确的位置以查看如何设置这种监听器.
Here's a collection of links which are providing some details about @EntityListeners
with JPA in Spring Boot webapplications:这是一个链接集合,它们在 Spring 引导 web 应用程序中提供了一些关于
@EntityListeners
和 JPA 的详细信息:
I think you'll have common paths to seek the information you need with all that links.我认为您将有共同的途径来寻找所有链接所需的信息。 And maybe other people will help you more.
也许其他人会帮助你更多。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.