com.holonplatform.json.gson.spring

## Interface SpringGsonConfiguration

-     public interface SpringGsonConfiguration

  Utility interface to handle Gson configuration in Spring environment.
  Since:
    5.0.0

- - ### Method Summary

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

- - ### Method Detail

    - #### configure

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

      Configure Spring RestTemplate, setting up serializers and deserializers for `PropertyBox` type handling in Gson HttpMessageConverters, if any. If no Jackson Gson is registered, a `GsonHttpMessageConverter` with a configured Gson instance 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 (not null)
      Returns:
        The configured RestTemplate instance

Copyright © 2019 The Holon Platform. All rights reserved.