2021
09-28
09-28
使用RequestBodyAdvice实现对Http请求非法字符过滤
RequestBodyAdvice对Http请求非法字符过滤利用RequestBodyAdvice对HTTP请求参数放入body中的参数进行非法字符过滤。要求:spring4.2+额外的pom.xml<dependency><groupId>org.apache.commons</groupId><artifactId>commons-io</artifactId><version>1.3.2</version></dependency><dependency><groupId>com.alibaba</groupId><artifactId>fastjson</artifactId><version>1.2.44</version></dependency>代码packagecom.niugang.con...
继续阅读 >