F
F
fife2021-12-22 13:15:07
Java
fife, 2021-12-22 13:15:07

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

1 answer(s)
A
Alexey Cheremisin, 2021-12-22
@leahch

Alternatively, write your own annotation. Attach it wherever you want.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question