com.holonplatform.json.jackson.spring

## Class SpringJacksonConfiguration

- java.lang.Object
- - com.holonplatform.json.jackson.spring.SpringJacksonConfiguration

- All Implemented Interfaces:
    Serializable

      public final class SpringJacksonConfiguration
      extends Object
      implements Serializable

  Utility class to handle Jackson configuration for Spring.
  Since:
    5.0.0
  See Also:
    Serialized Form

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `configure(org.springframework.web.client.RestTemplate restTemplate)` Configure Spring RestTemplate, setting up serializers and deserializers for `PropertyBox` type handling in Jackson HttpMessageConverters, if any.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### configure

          public static void configure(org.springframework.web.client.RestTemplate restTemplate)

      Configure Spring RestTemplate, setting up serializers and deserializers for `PropertyBox` type handling in Jackson HttpMessageConverters, if any. If no Jackson HttpMessageConverter is registered, a configured `MappingJackson2HttpMessageConverter` will be registered in RestTemplate.

      In order to this method to work, `spring-web` artifact must be present in classpath.

      Parameters:
        `restTemplate` - RestTemplate to configure

Copyright © 2017 The Holon Platform. All rights reserved.