parent
40f687aa78
commit
dd8ba8c07e
|
@ -2496,7 +2496,7 @@ When using `DelegatingFilterProxy`, you will see something like this in the `web
|
||||||
</filter-mapping>
|
</filter-mapping>
|
||||||
----
|
----
|
||||||
|
|
||||||
Notice that the filter is actually a `DelegatingFilterProxy`, and not the class that will actually implement the logic of the filter. What `DelegatingFilterProxy` does is delegate the `Filter` methods through to a bean which is obtained from the Spring application context. This enables the bean to benefit from the Spring web application context lifecycle support and configuration flexibility. The bean must implement `javax.servlet.Filter` and it must have the same name as that in the `filter-name` element. Read the Javadoc for `DelegatingFilterProxy` for more information
|
Notice that the filter is actually a `DelegatingFilterProxy`, and not the class that will actually implement the logic of the filter. What `DelegatingFilterProxy` does is delegate the `Filter` 's methods through to a bean which is obtained from the Spring application context. This enables the bean to benefit from the Spring web application context lifecycle support and configuration flexibility. The bean must implement `javax.servlet.Filter` and it must have the same name as that in the `filter-name` element. Read the Javadoc for `DelegatingFilterProxy` for more information
|
||||||
|
|
||||||
|
|
||||||
[[filter-chain-proxy]]
|
[[filter-chain-proxy]]
|
||||||
|
|
Loading…
Reference in New Issue