Last active
June 11, 2020 16:05
Star
You must be signed in to star a gist
This file contains 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; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good Day
Are you still planning on releasing version 2? I would be willing to help with the project.
Ash