fix():修复了NacosServerRemote这个奇怪的名字
parent
40f386e011
commit
e1101df66b
|
@ -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.resp.ServiceListResp;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author:yang
|
||||
* @Package:com.muyu.common.nacos.remote
|
||||
|
@ -21,7 +19,7 @@ import java.util.List;
|
|||
baseURL = Constants.HTTP+"#={nacos.addr}/nacos/v1/ns/service",
|
||||
interceptor = {NacosNamespaceInterceptor.class}
|
||||
)
|
||||
public interface NacosServiceRemote {
|
||||
public interface NacosServerRemote {
|
||||
|
||||
@GetRequest(
|
||||
url = "/list"
|
|
@ -1,6 +1,6 @@
|
|||
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.resp.ServiceListResp;
|
||||
|
||||
|
@ -18,7 +18,7 @@ import java.util.List;
|
|||
public class NacosServiceService {
|
||||
|
||||
@Resource
|
||||
private NacosServiceRemote nacosServiceRemote;
|
||||
private NacosServerRemote nacosServiceRemote;
|
||||
|
||||
public List<String > nacosServerAllList(){
|
||||
List<String> serverList = new ArrayList<>();
|
||||
|
|
Loading…
Reference in New Issue