Merge remote-tracking branch 'base-version/test' into dev
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user