为了账号安全,请及时绑定邮箱和手机立即绑定

springcloud zuul routes 路由配置不起作用,spring-boot(2.0.0.RELEASE) ,springcloud (Finchley.RELEASE)

/ 猿问

springcloud zuul routes 路由配置不起作用,spring-boot(2.0.0.RELEASE) ,springcloud (Finchley.RELEASE)

zuul:                                                           ##基于ZUUL的网关服务配置
  host:
    ##sockt超时
    socket-timeout-millis: 2000
    ##连接超时
    connect-timeout-millis: 2000
  routes:
    ##允许的路由
    rayvision-pay:                                                 
          path: /raysync/pay/**                                     
          serviceId: rayvision-pay                                
          stripPrefix: false  
    rayvision-app:                                                 
      path: /raysync/**                                     
      serviceId: rayvision-app                                 
      stripPrefix: false                                  
  retryable: true                          
  ribbon-isolation-strategy: semaphore
  
 
 最终的情况为没用按照配置路由,只会路由到一个上面去,导致部分拆分服务访问不到?


查看完整描述

目前暂无任何回答

添加回答

回复

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信