初始化
parent
eb5290d55d
commit
5773d1fbdd
|
@ -1,13 +0,0 @@
|
||||||
package com.bwie;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @Author:zhangzhihao
|
|
||||||
* @name:${NAME}
|
|
||||||
* @Date:2024/8/4 14:06
|
|
||||||
* 不准抄代码,添加注释,清楚每一行代码意思
|
|
||||||
*/
|
|
||||||
public class Main {
|
|
||||||
public static void main(String[] args) {
|
|
||||||
System.out.println("Hello world!");
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -3,6 +3,7 @@ package com.bwie.nacos.remote;
|
||||||
import com.bwie.nacos.remote.interceptor.NacosNamespaceInterceptor;
|
import com.bwie.nacos.remote.interceptor.NacosNamespaceInterceptor;
|
||||||
import com.bwie.nacos.remote.req.ServiceListReq;
|
import com.bwie.nacos.remote.req.ServiceListReq;
|
||||||
import com.bwie.nacos.remote.resp.ServiceListResp;
|
import com.bwie.nacos.remote.resp.ServiceListResp;
|
||||||
|
|
||||||
import com.dtflys.forest.annotation.BaseRequest;
|
import com.dtflys.forest.annotation.BaseRequest;
|
||||||
import com.dtflys.forest.annotation.Body;
|
import com.dtflys.forest.annotation.Body;
|
||||||
import com.dtflys.forest.annotation.GetRequest;
|
import com.dtflys.forest.annotation.GetRequest;
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
package com.bwie.nacos.remote.interceptor;
|
package com.bwie.nacos.remote.interceptor;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
|
||||||
import com.dtflys.forest.http.ForestRequest;
|
import com.dtflys.forest.http.ForestRequest;
|
||||||
import com.dtflys.forest.interceptor.Interceptor;
|
import com.dtflys.forest.interceptor.Interceptor;
|
||||||
import com.muyu.common.core.text.Convert;
|
import com.muyu.common.core.text.Convert;
|
||||||
import lombok.extern.log4j.Log4j2;
|
import lombok.extern.log4j.Log4j2;
|
||||||
import org.apache.commons.lang3.StringUtils;
|
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
|
||||||
@Log4j2
|
@Log4j2
|
||||||
|
@ -35,8 +35,6 @@ public class NacosNamespaceInterceptor<T> implements Interceptor<T> {
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
return true; // 继续执行请求返回true
|
return true; // 继续执行请求返回true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue