初始化
parent
9755b130a4
commit
401ce27e74
|
@ -3,6 +3,7 @@ package com.muyu.common.nacos.service;
|
||||||
import com.muyu.common.nacos.remote.NacosServiceRemote;
|
import com.muyu.common.nacos.remote.NacosServiceRemote;
|
||||||
import com.muyu.common.nacos.remote.req.ServiceListReq;
|
import com.muyu.common.nacos.remote.req.ServiceListReq;
|
||||||
import com.muyu.common.nacos.remote.resp.ServiceListResp;
|
import com.muyu.common.nacos.remote.resp.ServiceListResp;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -17,8 +18,7 @@ import java.util.List;
|
||||||
*/
|
*/
|
||||||
public class NacosServerService {
|
public class NacosServerService {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
@Resource
|
|
||||||
private NacosServiceRemote nacosServiceRemote;
|
private NacosServiceRemote nacosServiceRemote;
|
||||||
|
|
||||||
public List<String> nacosServerAllList(){
|
public List<String> nacosServerAllList(){
|
||||||
|
@ -41,12 +41,10 @@ public class NacosServerService {
|
||||||
serverList.addAll(serviceListResp.getDoms());
|
serverList.addAll(serviceListResp.getDoms());
|
||||||
}while(serviceListResp.getCount()>= pageNo*pageSize);
|
}while(serviceListResp.getCount()>= pageNo*pageSize);
|
||||||
|
|
||||||
|
|
||||||
return serverList;
|
return serverList;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue