bootstrap.yml 1.4 KB

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