Commit c77735cf by chamberone

feat: 测试微服务加载

1 parent f71e00de
......@@ -11,7 +11,7 @@ import reactor.core.publisher.Mono;
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients
@EnableFeignClients(basePackages = {"com.dituhui.pea.gateway", "com.dituhui.pea.user"})
public class Application {
@Bean
......
......@@ -21,8 +21,8 @@ import reactor.core.publisher.Mono;
@Slf4j
public class AuthFilter implements GlobalFilter, Ordered {
// @Autowired
// IUser userService;
@Autowired
IUser userService;
@Override
public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
......@@ -43,7 +43,7 @@ public class AuthFilter implements GlobalFilter, Ordered {
authToken = exchange.getRequest().getQueryParams().getFirst("token");
}
if (log.isTraceEnabled()) {
log.trace("token is {}" , authToken);
log.trace("token is {}", authToken);
}
UserLoginDTO userDTO = null;
if (StringUtils.isNotEmpty(authToken)) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!