Last active
December 26, 2015 02:59
-
-
Save jhiemer/7082775 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
public class CustomRepositoryRestMvcConfiguration | |
extends RepositoryRestMvcConfiguration { | |
@Override | |
protected void configureJacksonObjectMapper(ObjectMapper objectMapper) { | |
SimpleModule longModule = new SimpleModule("LongDeserializerModule", new Version(1, 0, 0, null)); | |
longModule.addDeserializer(Long.class, new LongJsonDeserializer()); | |
SimpleModule bigIntegerModule = new SimpleModule("BigIntegerDeserializerModule", new Version(1, 0, 0, null)); | |
longModule.addDeserializer(Long.class, new LongJsonDeserializer()); | |
objectMapper.registerModules(longModule, bigIntegerModule); | |
} | |
..... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment