You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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后再次启动还是报这个错,不知该怎么处理了。
The text was updated successfully, but these errors were encountered: