application.yml 1001 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #端口号
  2. application:
  3. name: maxkey-gateway-server
  4. formatted-version: v3.5.14 GA
  5. server:
  6. port: 9000
  7. spring:
  8. application:
  9. name: maxkey-gateway
  10. cloud:
  11. gateway:
  12. routes:
  13. #nacos健康检查端口8080
  14. - id: maxkeys_route
  15. uri: lb://maxkey
  16. filters:
  17. - PrefixPath=/
  18. predicates:
  19. - Path=/sign/**
  20. - id: maxkey_mgts_route
  21. uri: lb://maxkey-mgt
  22. filters:
  23. - PrefixPath=/
  24. predicates:
  25. - Path=/maxkey-mgt-api/**
  26. # default-filters:
  27. # - name: Hystrix
  28. # args:
  29. # name: default
  30. # fallbackUri: 'forward:/defaultFallback'
  31. main:
  32. web-application-type: reactive
  33. #spring.main.web-application-type=reactive
  34. hystrix:
  35. command:
  36. default:
  37. execution:
  38. isolation:
  39. strategy: SEMAPHORE
  40. thread:
  41. #1分钟服务无响应则直接熔断
  42. timeoutInMilliseconds: 60000