MarcGiffing / wicket-spring-boot

Spring Boot starter for Apache Wicket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How do I add additional, custom filters?

jhamsle opened this issue · comments

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?

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.

Actually, this is the correct way for a Spring Boot application.

Good deal then. Thanks for letting me know.