In this article, I am going to talk about how to best implement filters over HTTP requests in Spring. That is, assuming we have a program listening in a URI, we can specify that we want to execute something before the requests are processed by the controller.
This is very useful if we want all the requests to meet a requirement, for example, that they must include a specific header.