Separate the configuration/creation of the default ObjectMapper bean from the registration of Jackson modules to avoid circular creations of the default ObjectMapper bean (and thus failing to obtain the ObjectMapper and registering the module(s)).