1.不再过滤 get 开头的 url

This commit is contained in:
chenbowen
2026-01-09 11:46:59 +08:00
parent 30029e0fd6
commit 5b660f5a11

View File

@@ -21,9 +21,11 @@ public class ZtBusinessAutoConfiguration implements WebMvcConfigurer {
public void addInterceptors(InterceptorRegistry registry) {
// 拦截所有 url统一进行业务与文件上传请求头校验
registry.addInterceptor(new BusinessHeaderInterceptor())
.addPathPatterns("/**");
.addPathPatterns("/**")
.excludePathPatterns("/get*");
registry.addInterceptor(new FileUploadHeaderInterceptor())
.addPathPatterns("/**");
.addPathPatterns("/**")
.excludePathPatterns("/get*");
}
@Bean