Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

soybean admin java项目运行GatewayApplication时报错 #4

Open
runronger opened this issue Jul 5, 2023 · 0 comments
Open

soybean admin java项目运行GatewayApplication时报错 #4

runronger opened this issue Jul 5, 2023 · 0 comments

Comments

@runronger
Copy link

soybean admin项目运行GatewayApplication时报错,提示Description:

Parameter 3 of method gatewayControllerEndpoint in org.springframework.cloud.gateway.config.GatewayAutoConfiguration$GatewayActuatorConfiguration required a single bean, but 2 were found:
- redisRouteDefinitionRepository: defined by method 'redisRouteDefinitionRepository' in class path resource [com/soybean/gateway/confignamic/DynamicRouteAutoConfiguration.class]
- nacosRouteDefinitionRepository: defined by method 'nacosRouteDefinitionRepository' in class path resource [com/soybean/gateway/confignamic/DynamicRouteAutoConfiguration.class]

Action:

Consider marking one of the beans as @primary, updating the consumer to accept multiple beans, or using @qualifier to identify the bean that should be consumed

我在RedisRouteDefinitionRepository上架@primary后再次启动还是报这个错,不知该怎么处理了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant