Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@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

This comment has been minimized.

Copy link

@bohnman 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

This comment has been minimized.

Copy link

@awestwell awestwell commented Jun 11, 2020

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