[Spring Boot] Spring Boot Filter

This page will introduce an example of Spring Boot filter. Filters can be registered using the FilterRegistrationBean class or the @ Component annotation or the @ ServletComponentScan annotation. FilterRegistrationBean registers Filter as a Spring Bean, which provides methods such as adding URL mapping and setting Filter order. When we r ...

Posted on Fri, 24 Sep 2021 03:22:30 -0400 by grail

SpringBoot interceptor - Filter - listener

SpringBoot interceptor - Filter - listener Filter application scenario Filter can be simply understood as "take what you want", ignoring what you don't want; 1) Filter sensitive words (prevent sql injection) 2) Set character encoding 3) URL level access control 4) Compressed response information Interceptor usage scenario ...

Posted on Tue, 21 Sep 2021 18:26:42 -0400 by cbcampbell