初始化

master
Number7 2024-08-08 10:58:03 +08:00
parent 9755b130a4
commit 401ce27e74
1 changed files with 2 additions and 4 deletions

View File

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