Answer the question
In order to leave comments, you need to log in
How to hang a filter on a specific controller?
I have a controller and a filter. I need to somehow tell the spring that all requests for this controller should be processed by this filter.
Adding a chain to the filter is not an option, because I only need to add this filter in certain controllers.
Answer the question
In order to leave comments, you need to log in
Alternatively, write your own annotation. Attach it wherever you want.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question