xujunwei 2 anni fa
parent
commit
70c45c89ba

+ 3 - 3
framework-boot/src/main/java/com/mrxu/framework/boot/config/WebMvcConfig.java

@@ -1,6 +1,6 @@
 package com.mrxu.framework.boot.config;
 
-import com.mrxu.framework.boot.handle.UserInfoHandler;
+import com.mrxu.framework.boot.handle.FeignHandlerInterceptorAdapter;
 import com.mrxu.framework.boot.util.SpringApplicationContextUtil;
 import org.springframework.context.annotation.Bean;
 import org.springframework.context.annotation.Configuration;
@@ -21,8 +21,8 @@ public class WebMvcConfig implements WebMvcConfigurer {
      * @return 用户信息拦截器
      */
     @Bean
-    public UserInfoHandler userInfoHandler() {
-        return new UserInfoHandler();
+    public FeignHandlerInterceptorAdapter userInfoHandler() {
+        return new FeignHandlerInterceptorAdapter();
     }
 
     /**

+ 1 - 1
framework-boot/src/main/java/com/mrxu/framework/boot/handle/UserInfoHandler.java

@@ -16,7 +16,7 @@ import java.util.List;
  * 功能概要:[当前登录者的用户信息] <br>
  */
 @Slf4j
-public class UserInfoHandler extends HandlerInterceptorAdapter {
+public class FeignHandlerInterceptorAdapter extends HandlerInterceptorAdapter {
 
     @Override
     public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler){