-
I want to use the Eclipse Serializer for the Spring Modulith Event Registry, as the default Jackson Serialization doesn't work with my generic Event Structure.: https://docs.spring.io/spring-modulith/reference/events.html#publication-registry.serialization I have tried using the TypedSerializer but then when restarting the application it has an ID mismatch. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I have created an example: https://github.com/tschuehly/modulith-eclipse-serializer |
Beta Was this translation helpful? Give feedback.
-
There is an option to initialize the serializer with a predefined TypeDictionary by providing a custom PersistenceTypeDictionaryLoader that provides the TypeDictionary as a String.
The typeDictionaryString can be exported from another Serializer instance:
Of course, you can initialize that String also from an existing type-dictionary file. |
Beta Was this translation helpful? Give feedback.
There is an option to initialize the serializer with a predefined TypeDictionary by providing a custom PersistenceTypeDictionaryLoader that provides the TypeDictionary as a String.
The typeDictionaryString can be exported from another Serializer instance:
Of course, you can initialize that String also from an existing type-dictionary file.