In Spring Data REST, an event handler reacts to repository events and adds side-effect behavior. Handlers can address the same event types as listeners. section 16.5.2
Repository events include:
- POST requests that create an entity. section 16.5.2
- PUT or PATCH requests that save an entity. section 16.5.2
- DELETE requests and linked-object save or delete operations. section 16.5.2
Handlers use declarative annotations on classes and methods. Listeners instead extend an abstract class, which constrains their place in the class hierarchy. section 16.5.2






















