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 0 of method ribbonServerList in config.DefaultRibbonConfig required a bean of type 'com.netflix.client.config.IClientConfig' that could not be found.
Action:
Consider defining a bean of type 'com.netflix.client.config.IClientConfig' in your configuration.
书上源码:
@Configuration
public class DefaultRibbonConfig {
@Bean
public IRule ribbonRule() {
return new BestAvailableRule();
}
@Bean
public IPing ribbonPing() {
return new PingUrl();
}
@Bean
public ServerList<Server> ribbonServerList(IClientConfig clientConfig) {
return new RibbonClientDefaultConfigurationTestsConfig.BazServiceList(clientConfig);
}
@Bean
public ServerListSubsetFilter severListFilter() {
return new ServerListSubsetFilter();
}
}