application-dev.yml 1.8 KB

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