use of com.fasterxml.jackson.jaxrs.cfg.Annotations in project fabric8 by fabric8io.
the class WebClients method createProviders.
public static List<Object> createProviders() {
List<Object> providers = new ArrayList<Object>();
Annotations[] annotationsToUse = JacksonJaxbJsonProvider.DEFAULT_ANNOTATIONS;
ObjectMapper objectMapper = createObjectMapper();
providers.add(new JacksonJaxbJsonProvider(objectMapper, annotationsToUse));
providers.add(new ExceptionResponseMapper());
return providers;
}
Aggregations