application-pro.yml 1.4 KB

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