Examples of featuresToEnable()


Examples of org.springframework.http.converter.json.Jackson2ObjectMapperBuilder.featuresToEnable()

    @Bean
    @ConditionalOnMissingBean(Jackson2ObjectMapperBuilder.class)
    public Jackson2ObjectMapperBuilder jacksonObjectMapperBuilder() {
      Jackson2ObjectMapperBuilder builder = new Jackson2ObjectMapperBuilder();
      if (this.httpMapperProperties.isJsonSortKeys()) {
        builder.featuresToEnable(SerializationFeature.ORDER_MAP_ENTRIES_BY_KEYS);
      }
      configureFeatures(builder, this.jacksonProperties.getDeserialization());
      configureFeatures(builder, this.jacksonProperties.getSerialization());
      configureFeatures(builder, this.jacksonProperties.getMapper());
      configureFeatures(builder, this.jacksonProperties.getParser());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.