application.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. # remote git
  2. #spring:
  3. # cloud:
  4. # config:
  5. # server:
  6. # git:
  7. # uri: http://192.168.2.153:81/config.git
  8. # searchPaths: diagbotcloud/repo
  9. # username: dev
  10. # password: 123456
  11. # label: master
  12. # ---native
  13. spring:
  14. cloud:
  15. config:
  16. server:
  17. native:
  18. search-locations: classpath:/shared
  19. profiles:
  20. active: native
  21. #
  22. application:
  23. name: config-server
  24. # #mq
  25. # rabbitmq:
  26. # host: localhost
  27. # port: 5672
  28. # username: guest
  29. # password: guest
  30. # publisher-confirms: true
  31. # virtual-host: /
  32. # port
  33. server:
  34. port: 8769
  35. eureka:
  36. instance:
  37. prefer-ip-address: true #使用IP注册
  38. instance-id: ${spring.cloud.client.ip-address}:${server.port}
  39. leaseRenewalIntervalInSeconds: 10
  40. health-check-url-path: /actuator/health #2.0后actuator的地址发生了变化
  41. client:
  42. registryFetchIntervalSeconds: 5
  43. serviceUrl:
  44. defaultZone: http://${myuri}:8761/eureka/
  45. management:
  46. endpoints:
  47. web:
  48. exposure:
  49. include: "*"
  50. cors:
  51. allowed-origins: "*"
  52. allowed-methods: "*"
  53. endpoint:
  54. health:
  55. show-details: ALWAYS
  56. # security:
  57. # enabled: false
  58. myuri: localhost