|
|
@@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.DeserializationFeature; |
|
|
import com.fasterxml.jackson.databind.ObjectMapper; |
|
|
import com.fasterxml.jackson.databind.ObjectMapper; |
|
|
import com.fasterxml.jackson.databind.module.SimpleModule; |
|
|
import com.fasterxml.jackson.databind.module.SimpleModule; |
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|
|
|
|
|
import com.iformall.interceptor.CurrentTenantInterceptor; |
|
|
import com.iformall.interceptor.HttpServletRequestWrapperFilter; |
|
|
import com.iformall.interceptor.HttpServletRequestWrapperFilter; |
|
|
import com.iformall.interceptor.RequestInterceptor; |
|
|
import com.iformall.interceptor.RequestInterceptor; |
|
|
import com.iformall.service.MallResourceService; |
|
|
import com.iformall.service.MallResourceService; |
|
|
@@ -44,6 +45,9 @@ public class WebConfig implements WebMvcConfigurer { |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private RequestInterceptor requestInterceptor; |
|
|
private RequestInterceptor requestInterceptor; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private CurrentTenantInterceptor tenantInterceptor; |
|
|
|
|
|
|
|
|
@Autowired |
|
|
@Autowired |
|
|
private MallResourceService mallResourceService; |
|
|
private MallResourceService mallResourceService; |
|
|
@@ -87,6 +91,7 @@ public class WebConfig implements WebMvcConfigurer { |
|
|
@Override |
|
|
@Override |
|
|
public void addInterceptors(InterceptorRegistry registry) { |
|
|
public void addInterceptors(InterceptorRegistry registry) { |
|
|
registry.addInterceptor(requestInterceptor).addPathPatterns("/**"); |
|
|
registry.addInterceptor(requestInterceptor).addPathPatterns("/**"); |
|
|
|
|
|
registry.addInterceptor(tenantInterceptor).addPathPatterns("/**"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|