1
0
mirror of https://gitee.com/mirrors/Spring-Cloud-Alibaba.git synced 2021-06-26 13:25:11 +08:00

delete dependency spring-boot-starter-web,and NacosSeverList init with IClientConfig

This commit is contained in:
flystar32
2018-09-17 14:59:35 +08:00
parent 1dfcd8796b
commit ae4f1bf8a2
3 changed files with 14 additions and 7 deletions

View File

@@ -33,7 +33,8 @@ public class NacosRibbonClientConfiguration {
@Bean
@ConditionalOnMissingBean
public ServerList<?> ribbonServerList(IClientConfig config) {
NacosServerList serverList = new NacosServerList(config.getClientName());
NacosServerList serverList = new NacosServerList();
serverList.initWithNiwsConfig(config);
return serverList;
}
}

View File

@@ -36,6 +36,7 @@ public class NacosServerList extends AbstractServerList<NacosServer> {
private String serviceId;
public NacosServerList(){}
public NacosServerList(String serviceId) {
this.serviceId = serviceId;