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. 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.
Asked
Active
Viewed 334 times
-1

mikebrucks
- 59
- 8
1 Answers
1
Here's a collection of links which are providing some details about @EntityListeners
with JPA in Spring Boot webapplications :
- JPA Entity Lifecycle Events
- A gist of a php-coder
- Spring Data JPA Entity Auditing using EntityListeners
- Spring JPA Auditing in Official Documentation
- StackOverflow: How to use an @Autowired @EntityListener
- StackOverflow: How to inject a dependency into a JPA @EntityListener
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.

BendaThierry.com
- 2,080
- 1
- 15
- 17