How do I add additional, custom filters?
jhamsle opened this issue · comments
jhamsle commented
I'd like to add an additional filter to better integrate with Elastic using this as a model. Normally I would have modified the web.xml file, but since these things are now auto-configured I'm not sure how I go about registering a new listener. Wicket itself doesn't seem to allow it via code; do I need to create a custom config initializer?
jhamsle commented
I'm open to alternatives, but I was able to achieve this by registering a FilterRegistrationBean that creates my new filter. If I get no suggestions by the end of the week I'll close this issue.
Martin Grigorov commented
Actually, this is the correct way for a Spring Boot application.
jhamsle commented
Good deal then. Thanks for letting me know.