|
@@ -2,6 +2,7 @@ package com.persagy.apm.report.common.config;
|
|
|
|
|
|
import com.persagy.apm.common.handler.PoemsContextFilter;
|
|
|
import com.persagy.apm.common.handler.PoemsContextHandler;
|
|
|
+import com.persagy.framework.tenant.mybatis.datasource.db.interceptor.RequestHeaderInterceptor;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.boot.web.servlet.FilterRegistrationBean;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
@@ -36,6 +37,7 @@ public class PoemsWebConfigurer implements WebMvcConfigurer {
|
|
|
public void addInterceptors(InterceptorRegistry registry) {
|
|
|
// 设置拦截的路径、不拦截的路径、优先级等等
|
|
|
registry.addInterceptor(poemsContextHandler()).order(10).addPathPatterns("/**");
|
|
|
+ registry.addInterceptor(new RequestHeaderInterceptor()).order(11).addPathPatterns("/**");
|
|
|
}
|
|
|
|
|
|
// @Bean
|