Created
January 13, 2018 12:21
-
-
Save Sam-Kruglov/136ac5211936e6eef2005ec999bf6d85 to your computer and use it in GitHub Desktop.
JsonFilter
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
@Component | |
public class RestConfig extends RepositoryRestConfigurerAdapter { | |
@Override | |
public void configureJacksonObjectMapper(final ObjectMapper objectMapper) { | |
objectMapper.setFilterProvider(new SimpleFilterProvider().setFailOnUnknownId(false)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment