|  |  |  | 
|---|
|  |  |  | * @description 容器添加组件 | 
|---|
|  |  |  | * @date 2019-06-14 15:50 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Configuration | 
|---|
|  |  |  | @Configuration() | 
|---|
|  |  |  | @PropertySource("classpath:config/system.properties") | 
|---|
|  |  |  | public class MvcCoreConfig implements WebMvcConfigurer { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | registry.addInterceptor(suAuthorityInterceptor).addPathPatterns("/**/su/**"); | 
|---|
|  |  |  | //小程序公司与域名对应关系拦截 | 
|---|
|  |  |  | registry.addInterceptor(hostInterceptor).addPathPatterns("/**/wxapi/**") | 
|---|
|  |  |  | .excludePathPatterns("/wxCommon/wxapi/wxpayCallback"); | 
|---|
|  |  |  | .excludePathPatterns("/wxCommon/wxapi/wxpayCallback") | 
|---|
|  |  |  | .excludePathPatterns("/wxCommon/wxapi/rechargeCallBack"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|