In Spring, to create a custom filter, do we :
Annotate the filter class with a specific annotation
Implement the Filter interface from javax.servlet
Annotate the filter creation method with @Bean in a configuration class ?
@Bean