1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #dev环境公共配置文件
- spring:
- boot:
- admin:
- url: http://192.168.1.135:9101
- rabbitmq:
- host: 192.168.1.210
- port: 5672
- username: guest
- password: guest
- redis: #redis 配置
- database: 0
- password: Cs123456
- host: 192.168.1.210
- port: 6379
- pool:
- max-wait: 30
- max-idle: 5
- cache:
- type: redis
- # JWT
- jwt:
- header: Authorization
- secret: arch6Secret
- expiration: 86400
- tokenHead: "Arch6WithCloud "
- jackson:
- serialization:
- INDENT_OUTPUT: true
- eureka:
- client:
- registry-fetch-interval-seconds: 10 # 默认为30秒
- instance:
- lease-renewal-interval-in-seconds: 10 # 心跳时间,即服务续约间隔时间(缺省为30s)
- lease-expiration-duration-in-seconds: 30 # 发呆时间,即服务续约到期时间(缺省为90s)
- prefer-ip-address: true
- instance-id: ${spring.cloud.client.ipAddress}:${server.port}
- management:
- health:
- rabbit:
- enabled: false
- binders:
- enabled: false
- security:
- enabled: false # spring-boot 1.5.2之后严格执行安全策略,所以需要配置这个为false ,否则很多点监控不到
- feign:
- hystrix:
- enabled: false #Hystrix支持,如果为true,hystrix库必须在classpath中
- compression:
- request:
- enabled: true #请求GZIP压缩支持
- mime-types: text/xml,application/xml,application/json #支持压缩的mime types
- min-request-size: 2048
- response:
- enabled: true #响应GZIP压缩支持
- httpclient:
- enabled: true
- hystrix:
- stream:
- queue:
- enabled: false
- command:
- default:
- execution:
- isolation:
- thread.timeoutInMilliseconds: 50000 #让Hystrix的超时时间改为5秒,默认1秒
- logging:
- config: classpath:logback-custom.xml
- logstash:
- host: 192.168.1.104:4560
|