application-dev.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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: 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. # #热部署设置
  53. # thymeleaf:
  54. # cache: true #关闭缓存,及时刷新
  55. # devtools:
  56. # restart:
  57. # enabled: true #热部署生效
  58. # additional-paths: src/main/java #设置重启的目录,添加那个目录的文件需要restart(监听目录)
  59. swagger:
  60. enable: true