Class Jackson2MapperAutoConfiguration

java.lang.Object
org.axonframework.extension.springboot.autoconfig.Jackson2MapperAutoConfiguration

@AutoConfiguration @AutoConfigureBefore({AxonAutoConfiguration.class,CBORMapperAutoConfiguration.class}) @AutoConfigureAfter(name="org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration") @ConditionalOnClass(name="com.fasterxml.jackson.databind.ObjectMapper") @EnableConfigurationProperties(ConverterProperties.class) public class Jackson2MapperAutoConfiguration extends Object
Autoconfiguration that constructs a default ObjectMapper, typically to be used by a Jackson2Converter.
Since:
5.0.3
Author:
Steven van Beelen
  • Constructor Details

    • Jackson2MapperAutoConfiguration

      public Jackson2MapperAutoConfiguration()
  • Method Details

    • defaultAxonJackson2Mapper

      @Bean("defaultAxonJackson2Mapper") @ConditionalOnMissingBean @Conditional(org.axonframework.extension.springboot.autoconfig.Jackson2MapperAutoConfiguration.JacksonConfiguredCondition.class) public com.fasterxml.jackson.databind.ObjectMapper defaultAxonJackson2Mapper()
      Returns the default Axon Framework ObjectMapper, if required.

      This ObjectMapper bean is only created when there is no other ObjectMapper bean present and whenever the user specified either the ConverterProperties.ConverterType.DEFAULT or ConverterProperties.ConverterType.JACKSON ConverterType.

      Returns:
      The default Axon Framework ObjectMapper, if required.