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

setFindModulesViaServiceLoader

open fun setFindModulesViaServiceLoader(findModules: Boolean): Unit

Set whether to let Jackson find available modules via the JDK ServiceLoader, based on META-INF metadata in the classpath. Requires Jackson 2.2 or higher.

If this mode is not set, Spring's Jackson2ObjectMapperFactoryBean itself will try to find the JSR-310 and Joda-Time support modules on the classpath - provided that Java 8 and Joda-Time themselves are available, respectively.

Since
4.0.1

See Also
com.fasterxml.jackson.databind.ObjectMapper#findModules()