Closed bmeurant closed 10 years ago
Maybe this? https://jira.springsource.org/browse/SPR-11040
It sounds good ... I will test soon ! thx for the pointer !
Would be nice to have this declaration
<bean class="org.springframework.http.converter.json.Jackson2ObjectMapperFactoryBean">
<property name="modulesToInstall" ref="resthubModules"/>
</bean>
resthubModules being the list of Jackson modules to add for Resthub. and having a sublist, added to resthubModules for custom modules (same MO as jpaProperties)
Also, in Boot - any ObjectMapper bean is automatically registered; see: HttpMessageConvertersAutoConfiguration.
Today, there is no simple way to "inject" custom Serialization module into Jackson ObjectMapper in Resthub.
If we want to provide a custom module to globally serialize owned or third-party object in a Resthub base application, we have to work with BeanPostProcessors.
It could be interesting to allow addition of custom modules through Resthub & Jackson configuration