|
@@ -1,6 +1,6 @@
|
|
|
-package com.mrxu.framework.boot.feign;
|
|
|
|
|
|
|
+package com.mrxu.framework.boot.config;
|
|
|
|
|
|
|
|
-import com.mrxu.framework.boot.handle.UserInfoHandler;
|
|
|
|
|
|
|
+import com.mrxu.framework.boot.feign.FeignRequestInterceptor;
|
|
|
import feign.RequestInterceptor;
|
|
import feign.RequestInterceptor;
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
@@ -27,12 +27,4 @@ public class FeignAutoConfiguration {
|
|
|
return new FeignRequestInterceptor();
|
|
return new FeignRequestInterceptor();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- /**
|
|
|
|
|
- * 用户信息拦截器
|
|
|
|
|
- * @return 用户信息拦截器
|
|
|
|
|
- */
|
|
|
|
|
- @Bean
|
|
|
|
|
- public UserInfoHandler userInfoHandler() {
|
|
|
|
|
- return new UserInfoHandler();
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|