-
Notifications
You must be signed in to change notification settings - Fork 178
Open
Labels
in: event publication registryEvent publication registryEvent publication registryin: momentsThe moment of time abstractionThe moment of time abstractionmeta: waiting for feedbackWaiting for feedback of the original reporterWaiting for feedback of the original reporter
Description
In Spring Modulith 1 I was doing:
@ApplicationModuleListener
public void on(DayHasPassed dayHasPassed) {
After migrating to Modulith 2 I get:
tools.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of org.springframework.modulith.moments.DayHasPassed (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
Is there any recommended way of getting Moments events serialized or is this something discouraged and I should use the in-memory EventListener mechanism?
Metadata
Metadata
Assignees
Labels
in: event publication registryEvent publication registryEvent publication registryin: momentsThe moment of time abstractionThe moment of time abstractionmeta: waiting for feedbackWaiting for feedback of the original reporterWaiting for feedback of the original reporter