From 5773d1fbdd159be7f161fe997139ae41fa2207fb Mon Sep 17 00:00:00 2001 From: zzh <2441574824@qq.com> Date: Sun, 4 Aug 2024 16:08:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/bwie/Main.java | 13 ------------- .../com/bwie/nacos/remote/NacosServiceRemote.java | 1 + .../interceptor/NacosNamespaceInterceptor.java | 4 +--- 3 files changed, 2 insertions(+), 16 deletions(-) delete mode 100644 src/main/java/com/bwie/Main.java diff --git a/src/main/java/com/bwie/Main.java b/src/main/java/com/bwie/Main.java deleted file mode 100644 index e263d3a..0000000 --- a/src/main/java/com/bwie/Main.java +++ /dev/null @@ -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!"); - } -} diff --git a/src/main/java/com/bwie/nacos/remote/NacosServiceRemote.java b/src/main/java/com/bwie/nacos/remote/NacosServiceRemote.java index e5fabe6..10aa697 100644 --- a/src/main/java/com/bwie/nacos/remote/NacosServiceRemote.java +++ b/src/main/java/com/bwie/nacos/remote/NacosServiceRemote.java @@ -3,6 +3,7 @@ package com.bwie.nacos.remote; import com.bwie.nacos.remote.interceptor.NacosNamespaceInterceptor; import com.bwie.nacos.remote.req.ServiceListReq; import com.bwie.nacos.remote.resp.ServiceListResp; + import com.dtflys.forest.annotation.BaseRequest; import com.dtflys.forest.annotation.Body; import com.dtflys.forest.annotation.GetRequest; diff --git a/src/main/java/com/bwie/nacos/remote/interceptor/NacosNamespaceInterceptor.java b/src/main/java/com/bwie/nacos/remote/interceptor/NacosNamespaceInterceptor.java index 67594e6..ab58893 100644 --- a/src/main/java/com/bwie/nacos/remote/interceptor/NacosNamespaceInterceptor.java +++ b/src/main/java/com/bwie/nacos/remote/interceptor/NacosNamespaceInterceptor.java @@ -1,11 +1,11 @@ package com.bwie.nacos.remote.interceptor; +import com.baomidou.mybatisplus.core.toolkit.StringUtils; import com.dtflys.forest.http.ForestRequest; import com.dtflys.forest.interceptor.Interceptor; import com.muyu.common.core.text.Convert; import lombok.extern.log4j.Log4j2; -import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Value; @Log4j2 @@ -35,8 +35,6 @@ public class NacosNamespaceInterceptor implements Interceptor { } - - return true; // 继续执行请求返回true }