You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "coolcoolercool (via GitHub)" <gi...@apache.org> on 2024/10/25 02:10:55 UTC

[I] 网关转发同appName下的,是否支持注册名为url前缀的动态路由 [servicecomb-java-chassis]

coolcoolercool opened a new issue, #4568:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4568

   之前使用的是nacos作为注册中心,是支持的,举个例子
   http://localhost:8080/query_service_name/query/xxx
   localhost:8080是网关的地址IP
   query_service_name是应用服务注册在nacos的注册服务名,相当于service comb的service name
   这样请求,在SpringCloud网关不加任何路由规则是可以请求成功的
   
   现在改成service comb为注册中心了,但是这种方式直接报错,网关报错404找不到了
   也试过如下请求方式,但是也是同样报错,
   http://localhost:8080/appName:query_service_name/query/xxx
   
   现在就是疑问,service comb支持这个功能吗,如果支持我该如何修改,还是版本问题?
   请大佬指点
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 网关转发同appName下的,是否支持注册名为url前缀的动态路由 [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4568:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4568#issuecomment-2439170673

   BTW: 你是用的java chassis开发框架还是spring cloud? 上述答案是针对java chassis框架的,和service center没关系


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 网关转发同appName下的,是否支持注册名为url前缀的动态路由 [servicecomb-java-chassis]

Posted by "coolcoolercool (via GitHub)" <gi...@apache.org>.
coolcoolercool commented on issue #4568:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4568#issuecomment-2453711149

   > BTW: 你是用的java chassis开发框架还是spring cloud? 上述答案是针对java chassis框架的,和service center没关系
   
   使用的是spring cloud,目前已经验证是支持动态路由的,3q anyway


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] 网关转发同appName下的,是否支持注册名为url前缀的动态路由 [servicecomb-java-chassis]

Posted by "liubao68 (via GitHub)" <gi...@apache.org>.
liubao68 commented on issue #4568:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4568#issuecomment-2439170044

   可以看看 `DefaultEdgeDispatcher`, 参考 https://servicecomb.apache.org/references/java-chassis/zh_CN/edge/by-servicecomb-sdk.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org