public interface SpringGsonConfiguration
| 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. |
static org.springframework.web.client.RestTemplate configure(org.springframework.web.client.RestTemplate restTemplate)
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.
restTemplate - RestTemplate to configure (not null)Copyright © 2019 The Holon Platform. All rights reserved.