application-dev.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #dev环境公共配置文件
  2. spring:
  3. rabbitmq:
  4. host: 192.168.1.210
  5. port: 5672
  6. username: guest
  7. password: guest
  8. redis: #redis 配置
  9. database: 0
  10. password: Cs123456
  11. host: 192.168.1.210
  12. port: 6379
  13. pool:
  14. max-wait: 30
  15. max-idle: 5
  16. boot:
  17. admin:
  18. client:
  19. service-base-url: http://localhost:9101
  20. cache:
  21. type: redis
  22. # JWT
  23. jwt:
  24. header: Authorization
  25. secret: arch6Secret
  26. expiration: 86400
  27. tokenHead: "Arch6WithCloud "
  28. jackson:
  29. serialization:
  30. INDENT_OUTPUT: true
  31. eureka:
  32. client:
  33. registry-fetch-interval-seconds: 10 # 默认为30秒
  34. instance:
  35. lease-renewal-interval-in-seconds: 10 # 心跳时间,即服务续约间隔时间(缺省为30s)
  36. lease-expiration-duration-in-seconds: 30 # 发呆时间,即服务续约到期时间(缺省为90s)
  37. prefer-ip-address: true
  38. instance-id: ${spring.cloud.client.ipAddress}:${server.port}
  39. management:
  40. health:
  41. rabbit:
  42. enabled: false
  43. binders:
  44. enabled: false
  45. security:
  46. enabled: false # spring-boot 1.5.2之后严格执行安全策略,所以需要配置这个为false ,否则很多点监控不到
  47. feign:
  48. hystrix:
  49. enabled: false #Hystrix支持,如果为true,hystrix库必须在classpath中
  50. compression:
  51. request:
  52. enabled: true #请求GZIP压缩支持
  53. mime-types: text/xml,application/xml,application/json #支持压缩的mime types
  54. min-request-size: 2048
  55. response:
  56. enabled: true #响应GZIP压缩支持
  57. httpclient:
  58. enabled: true
  59. hystrix:
  60. command:
  61. default:
  62. execution:
  63. timeout:
  64. enabled: false
  65. isolation:
  66. thread:
  67. timeoutInMilliseconds: 60000 #让Hystrix的超时时间改为5秒,默认1秒
  68. logging:
  69. config: classpath:logback-custom.xml
  70. logstash:
  71. host: 192.168.1.104:4560
  72. gofastdfs:
  73. url: http://192.168.1.210:8080/upload
  74. recordUrl: http://192.168.1.210:8080
  75. hadoop:
  76. hdfs: hdfs://192.168.1.135:9000
  77. server:
  78. undertow:
  79. accesslog:
  80. enabled: false
  81. pattern: common