public final class SpringGsonConfiguration extends Object implements Serializable
| 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
Gson HttpMessageConverters, if any. |
public static void 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 configureCopyright © 2017 The Holon Platform. All rights reserved.