fix():修复了NacosServerRemote这个奇怪的名字

master
Yueng 2024-08-09 20:32:01 +08:00
parent 40f386e011
commit e1101df66b
2 changed files with 3 additions and 5 deletions

View File

@ -8,8 +8,6 @@ import com.muyu.common.nacos.remote.interceptor.NacosNamespaceInterceptor;
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 java.util.List;
/** /**
* @Authoryang * @Authoryang
* @Packagecom.muyu.common.nacos.remote * @Packagecom.muyu.common.nacos.remote
@ -21,7 +19,7 @@ import java.util.List;
baseURL = Constants.HTTP+"#={nacos.addr}/nacos/v1/ns/service", baseURL = Constants.HTTP+"#={nacos.addr}/nacos/v1/ns/service",
interceptor = {NacosNamespaceInterceptor.class} interceptor = {NacosNamespaceInterceptor.class}
) )
public interface NacosServiceRemote { public interface NacosServerRemote {
@GetRequest( @GetRequest(
url = "/list" url = "/list"

View File

@ -1,6 +1,6 @@
package com.muyu.common.nacos.service; package com.muyu.common.nacos.service;
import com.muyu.common.nacos.remote.NacosServiceRemote; import com.muyu.common.nacos.remote.NacosServerRemote;
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;
@ -18,7 +18,7 @@ import java.util.List;
public class NacosServiceService { public class NacosServiceService {
@Resource @Resource
private NacosServiceRemote nacosServiceRemote; private NacosServerRemote nacosServiceRemote;
public List<String > nacosServerAllList(){ public List<String > nacosServerAllList(){
List<String> serverList = new ArrayList<>(); List<String> serverList = new ArrayList<>();