bootstrap.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # Tomcat
  2. server:
  3. port: 8088
  4. servlet:
  5. context-path:
  6. # Spring
  7. spring:
  8. application:
  9. # 应用名称
  10. name: jeeplus-gateway
  11. boot:
  12. admin:
  13. client:
  14. url: http://localhost:8989
  15. profiles:
  16. # 环境配置
  17. active: dev
  18. main:
  19. allow-bean-definition-overriding: true
  20. cloud:
  21. nacos:
  22. discovery:
  23. # 服务注册地址
  24. server-addr: 127.0.0.1:8848
  25. # 命名空间
  26. namespace: ${spring.profiles.active}
  27. ip: 127.0.0.1
  28. config:
  29. # 配置中心地址
  30. server-addr: 127.0.0.1:8848
  31. # 配置文件格式
  32. file-extension: yml
  33. # 共享配置
  34. shared-configs:
  35. - application.${spring.cloud.nacos.config.file-extension}
  36. # 命名空间
  37. namespace: ${spring.profiles.active}
  38. sentinel:
  39. transport:
  40. dashboard: 127.0.0.1:8858
  41. #ribbon的超时时间
  42. ribbon:
  43. # read-timeout: 60000 失效参数
  44. # connect-timeout: 60000 失效参数
  45. ReadTimeout: 600000
  46. ConnectTimeout: 600000
  47. hystrix:
  48. command:
  49. default:
  50. execution:
  51. isolation:
  52. thread:
  53. timeoutInMillisecond: 60000 # 熔断超时时长:60000ms
  54. management:
  55. endpoints:
  56. web:
  57. exposure:
  58. include: "*"