Commit 83551ea9 by chamberone

feat: 解决微服务加载问题

1 parent c309bbf6
...@@ -11,8 +11,8 @@ import reactor.core.publisher.Mono; ...@@ -11,8 +11,8 @@ import reactor.core.publisher.Mono;
@EnableDiscoveryClient @EnableDiscoveryClient
@SpringBootApplication @SpringBootApplication
//@EnableFeignClients(basePackages = {"com.dituhui.pea.gateway", "com.dituhui.pea.user"}) @EnableFeignClients(basePackages = {"com.dituhui.pea.user"})
@EnableFeignClients //@EnableFeignClients
public class Application { public class Application {
@Bean @Bean
......
...@@ -21,8 +21,8 @@ import reactor.core.publisher.Mono; ...@@ -21,8 +21,8 @@ import reactor.core.publisher.Mono;
@Slf4j @Slf4j
public class AuthFilter implements GlobalFilter, Ordered { public class AuthFilter implements GlobalFilter, Ordered {
//@Autowired @Autowired
//IUser userService; IUser userService;
@Override @Override
public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) { public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
......
...@@ -11,9 +11,8 @@ import org.springframework.web.bind.annotation.RequestParam; ...@@ -11,9 +11,8 @@ import org.springframework.web.bind.annotation.RequestParam;
/** /**
* 角色相关接口 * 角色相关接口
* @author zl
*/ */
@FeignClient(value = "project-user") @FeignClient(value = "project-user", contextId = "role")
public interface IRole { public interface IRole {
/** /**
......
...@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
@FeignClient(value = "project-user") @FeignClient(value = "project-user", contextId = "test")
public interface ITest { public interface ITest {
/** /**
......
...@@ -17,7 +17,7 @@ import com.dituhui.pea.pojo.WebResult; ...@@ -17,7 +17,7 @@ import com.dituhui.pea.pojo.WebResult;
* 用户相关接口 * 用户相关接口
* @author * @author
*/ */
@FeignClient(value = "project-user") @FeignClient(value = "project-user", contextId = "user")
public interface IUser { public interface IUser {
@RequestMapping(value = "/pea-user/login", method = RequestMethod.POST) @RequestMapping(value = "/pea-user/login", method = RequestMethod.POST)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!