Pass a JsonMapper to JacksonJsonHttpMessageConverter
ProprietaryJacksonJsonHttpMessageConverter only accepts a JsonMapper, where MappingJackson2HttpMessageConverter accepted any ObjectMapper. Retypes the ObjectMapper passed to the converter constructor when it is created with new ObjectMapper(), is a local variable initialized with a JsonMapper, or is a @Bean method parameter. Any other ObjectMapper argument gets a TODO comment, as retyping it could break code elsewhere.
io. moderne. java. spring. framework. MigrateConverterObjectMapperToJsonMappermod run . --recipe= io. moderne. java. spring. framework. MigrateConverterObjectMapperToJsonMapperInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.