Class MvcConfig

java.lang.Object
org.qubership.atp.ram.config.MvcConfig

@Configuration public class MvcConfig extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.modelmapper.ModelMapper
    Create ModelMapper bean and set configuration.
    com.fasterxml.jackson.databind.ObjectMapper
    objectMapper(org.springframework.http.converter.json.Jackson2ObjectMapperBuilder builder)
    Object mapper config.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MvcConfig

      public MvcConfig()
  • Method Details

    • objectMapper

      @Bean public com.fasterxml.jackson.databind.ObjectMapper objectMapper(org.springframework.http.converter.json.Jackson2ObjectMapperBuilder builder)
      Object mapper config. see how spring does it in class: org.springframework.boot.autoconfigure.jackson.JacksonAutoConfiguration method: jacksonObjectMapper(org.springframework.http.converter.json.Jackson2ObjectMapperBuilder)
      Returns:
      object mapper
    • modelMapper

      @Bean public org.modelmapper.ModelMapper modelMapper()
      Create ModelMapper bean and set configuration.
      Returns:
      configured mapper