In case there are no specific setters provided (for some rarely used options), you can still use the more general methods {@link #setFeaturesToEnable(Object[])} and {@link #setFeaturesToDisable(Object[])}.
<bean class="org.springframework.yarn.integration.support.Jackson2ObjectMapperFactoryBean"> <property name="featuresToEnable"> <array> <util:constant static-field="com.fasterxml.jackson.databind.SerializationFeature$WRAP_ROOT_VALUE"/> <util:constant static-field="com.fasterxml.jackson.databind.SerializationFeature$CLOSE_CLOSEABLE"/> </array> </property> <property name="featuresToDisable"> <array> <util:constant static-field="com.fasterxml.jackson.databind.MapperFeature$USE_ANNOTATIONS"/> </array> </property> </bean>
Note: This BeanFctory is singleton, so if you need more than one you'll need to configure multiple instances. @author Dmitry Katsubo @author Rossen Stoyanchev @author Janne Valkealahti
|
|
|
|