spring-framework / org.springframework.http.converter.json / Jackson2ObjectMapperFactoryBean / setModulesToInstall

setModulesToInstall

open fun setModulesToInstall(vararg modules: Class<out Module>): Unit

Specify one or more modules by class (or class name in XML) to be registered with the ObjectMapper.

Modules specified here will be registered after Spring's autodetection of JSR-310 and Joda-Time, or Jackson's finding of modules (see #setFindModulesViaServiceLoader), allowing to eventually override their configuration.

Specify either this or #setModules, not both.

Since
4.0.1

See Also
com.fasterxml.jackson.databind.Module