Filters and Interceptors:
Filter is configured in web.xml but interceptor is configured in applicationContext.xml.Filters are more powerful, for example they allow for exchanging the request and response objects that are handed down the chain. Interceptor just allows custom pre-processing with the option of prohibiting the execution of the handler itself.
Filter is configured in web.xml but interceptor is configured in applicationContext.xml.Filters are more powerful, for example they allow for exchanging the request and response objects that are handed down the chain. Interceptor just allows custom pre-processing with the option of prohibiting the execution of the handler itself.
No comments:
Post a Comment