This is an automated email from the ASF dual-hosted git repository. xiaoyu pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push: new 8f200ec382 [type:bugfix] springCloud ruleData path setting didn't used #5840 (#5841) 8f200ec382 is described below commit 8f200ec382a6914e7c3349778de17ea1183e9772 Author: frank <shaoshuai...@163.com> AuthorDate: Mon Dec 9 17:11:22 2024 +0800 [type:bugfix] springCloud ruleData path setting didn't used #5840 (#5841) Co-authored-by: xiaoyu <xia...@apache.org> --- .../java/org/apache/shenyu/plugin/springcloud/SpringCloudPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-springcloud/src/main/java/org/apache/shenyu/plugin/springcloud/SpringCloudPlugin.java b/shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-springcloud/src/main/java/org/apache/shenyu/plugin/springcloud/SpringCloudPlugin.java index 8c6184211c..0bb96105fb 100644 --- a/shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-springcloud/src/main/java/org/apache/shenyu/plugin/springcloud/SpringCloudPlugin.java +++ b/shenyu-plugin/shenyu-plugin-proxy/shenyu-plugin-springcloud/src/main/java/org/apache/shenyu/plugin/springcloud/SpringCloudPlugin.java @@ -85,7 +85,7 @@ public class SpringCloudPlugin extends AbstractShenyuPlugin { return WebFluxResultUtils.result(exchange, error); } final String domain = upstream.buildDomain(); - setDomain(URI.create(domain + shenyuContext.getRealUrl()), exchange); + setDomain(URI.create(domain + (StringUtils.isBlank(ruleHandle.getPath()) ? shenyuContext.getRealUrl() : ruleHandle.getPath())), exchange); //set time out. exchange.getAttributes().put(Constants.HTTP_TIME_OUT, ruleHandle.getTimeout()); return chain.execute(exchange);