Last active
August 29, 2015 14:21
-
-
Save fedotxxl/3c00704e5b73ef5554ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JacksonJsonProvider jacksonJsonProvider = new JacksonJaxbJsonProvider(); | |
ObjectMapper objectMapper = new ObjectMapper() | |
.setPropertyNamingStrategy(PropertyNamingStrategy.CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES) | |
.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false) | |
.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false); | |
jacksonJsonProvider.setMapper(objectMapper); | |
client = ClientBuilder.newClient().register(jacksonJsonProvider); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment