Skip to content

Instantly share code, notes, and snippets.

@fabiojb
Last active June 11, 2020 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabiojb/c22aaf4ec85ac0bad34c7a5a27fb2630 to your computer and use it in GitHub Desktop.
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;
}
}
@bohnman
Copy link

bohnman commented Oct 3, 2018

Thanks! Actually, Squiggly 2 will have a spring boot starter to reduce the configuration you have to write. I'm not sure when version 2 will be released, it is a major overhaul, and I've been really bad at estimating when it will be finished.

@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