解决zuul异常:forwarding error错误(100%解决)

网上看很多人说这么写:

ribbon:
  ReadTimeout: 10000
  ConnectTimeout: 10000

纯属坑人!!!根本不好使!

正解是:

zuul:
  routes:
    xxx:
                    path: /api/**
                    serviceId: xxx
                    
  
  host:
    maxTotalConnections: 10000
    maxPerRouteConnections: 10000
  semaphore:
        max-semaphores: 200

 完美解决!

你可能感兴趣的:(SpringCloud)