You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class RapidObjectMapperCreateEventListener implements BeanCreatedEventListener<ObjectMapper> {
...
@Override
public ObjectMapper onCreated(BeanCreatedEvent<ObjectMapper> event) {
...
module.addSerializer(new MultiLocaleValueSerializer(defaultFallback));
module.addDeserializer(MultiLocaleValue.class, new MultiLocaleValueDeserializer());
mapper.registerModule(module);
return mapper;
}
in the customized serializer module(MultiLocaleValueSerializer), I need context to process something.
is it possible to have ServerRequestContext.currentRequest() during serialize?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
when I do post request by rx client like
and I have setup ObjectMapper module like
in the customized serializer module(MultiLocaleValueSerializer), I need context to process something.
is it possible to have ServerRequestContext.currentRequest() during serialize?
Beta Was this translation helpful? Give feedback.
All reactions