Skip to content

Instantly share code, notes, and snippets.

@Sam-Kruglov
Created January 13, 2018 12:21
Show Gist options
  • Save Sam-Kruglov/136ac5211936e6eef2005ec999bf6d85 to your computer and use it in GitHub Desktop.
Save Sam-Kruglov/136ac5211936e6eef2005ec999bf6d85 to your computer and use it in GitHub Desktop.
JsonFilter
@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