application-dev.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. #logging:
  2. # level:
  3. # org.springframework.security: INFO
  4. hystrix:
  5. command:
  6. default:
  7. execution:
  8. isolation:
  9. thread:
  10. timeoutInMilliseconds: 10000
  11. eureka:
  12. instance:
  13. prefer-ip-address: true #使用IP注册
  14. instance-id: ${spring.cloud.client.ip-address}:${server.port}
  15. leaseRenewalIntervalInSeconds: 10
  16. health-check-url-path: /actuator/health #2.0后actuator的地址发生了变化
  17. client:
  18. registryFetchIntervalSeconds: 5
  19. # serviceUrl:
  20. # defaultZone: http://eureka1:8761/eureka/
  21. #endpoints:
  22. # health:
  23. # sensitive: false
  24. # enabled: true
  25. # actuator:
  26. # enabled: true
  27. # sensitive: false
  28. # beans:
  29. # sensitive: false
  30. # enabled: true
  31. management:
  32. endpoints:
  33. web:
  34. exposure:
  35. include: bus-refresh,health,info,hystrix.stream
  36. cors:
  37. allowed-origins: "*"
  38. allowed-methods: "*"
  39. endpoint:
  40. health:
  41. show-details: always
  42. feign:
  43. hystrix:
  44. enabled: true
  45. spring:
  46. #消息总线
  47. cloud:
  48. bus:
  49. enabled: true
  50. trace:
  51. enabled: true
  52. jackson:
  53. date-format: yyyy-MM-dd HH:mm:ss
  54. time-zone: GMT+8
  55. swagger:
  56. enable: true