bootstrap.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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: pro # 环境配置
  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. #username: nacos
  26. #password: nacos
  27. config:
  28. server-addr: 127.0.0.1:8848 # 配置中心地址
  29. file-extension: yml # 配置文件格式
  30. shared-configs: # 共享配置
  31. - application.${spring.cloud.nacos.config.file-extension}
  32. # 命名空间
  33. namespace: ${spring.profiles.active}
  34. #username: ${spring.cloud.nacos.discovery.username}
  35. #password: ${spring.cloud.nacos.discovery.password}
  36. sentinel:
  37. transport:
  38. dashboard: 127.0.0.1:8858
  39. #ribbon的超时时间
  40. ribbon:
  41. # read-timeout: 60000 失效参数
  42. # connect-timeout: 60000 失效参数
  43. ReadTimeout: 600000
  44. ConnectTimeout: 600000
  45. hystrix:
  46. command:
  47. default:
  48. execution:
  49. isolation:
  50. thread:
  51. timeoutInMillisecond: 60000 # 熔断超时时长:60000ms
  52. management:
  53. endpoints:
  54. web:
  55. exposure:
  56. include: "*"