Last active
June 11, 2020 16:05
-
-
Save fabiojb/c22aaf4ec85ac0bad34c7a5a27fb2630 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@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; | |
} | |
} |
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
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.