0

I'm referring to this question.

It's about OncePerRequestFilter. The answer says it's used when

the request could be dispatched to a different (or the same) servlet using the request dispatcher.

But as far as I know there's only one servlet in Spring Web which is the DispatcherServlet. What am I missing here?

1 Answers1

0

We can define multiple servlets in one spring web application.
DispatcherServlet is the default servlet of spring implements.
Here is a example. https://www.baeldung.com/spring-web-contexts#parent-context

shanfeng
  • 503
  • 2
  • 14