Skip to content

Instantly share code, notes, and snippets.

@fabiojb
Last active June 11, 2020 16:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save fabiojb/c22aaf4ec85ac0bad34c7a5a27fb2630 to your computer and use it in GitHub Desktop.
@Configuration
@ConditionalOnClass(ObjectMapper.class)
public class SquigglyAutoconfigure {
@Bean
public FilterRegistrationBean squigglyRequestFilter(ObjectMapper objectMapper) {
Squiggly.init(objectMapper, new RequestSquigglyContextProvider());
FilterRegistrationBean<SquigglyRequestFilter> filter = new FilterRegistrationBean<>();
filter.setFilter(new SquigglyRequestFilter());
filter.setOrder(1);
return filter;
}
}
@awestwell
Copy link

Good Day

Are you still planning on releasing version 2? I would be willing to help with the project.

Ash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment