Class MapperConfiguration

java.lang.Object
com.unosquare.carmigo.configuration.MapperConfiguration

@Configuration public class MapperConfiguration extends Object
ModelMapper and ObjectMapper configurations.
  • Constructor Details

    • MapperConfiguration

      public MapperConfiguration()
  • Method Details

    • modelMapper

      @Bean @Scope("singleton") public org.modelmapper.ModelMapper modelMapper()
      ModelMapper configuration.
      Returns:
      ModelMapper
    • objectMapper

      @Bean @Scope("singleton") public com.fasterxml.jackson.databind.ObjectMapper objectMapper()
      ObjectMapper configuration.
      Returns:
      ObjectMapper