|
|
@@ -16,9 +16,25 @@ spring:
|
|
|
sentinel:
|
|
|
transport:
|
|
|
dashboard: happy-cloud-sentinel:8888
|
|
|
+#feign配置
|
|
|
feign:
|
|
|
+ hystrix:
|
|
|
+ enabled: true # 开启feign支持hystrix
|
|
|
sentinel:
|
|
|
- enabled: true
|
|
|
+ enabled: true # 开启Feign对Sentinel 的支持
|
|
|
+ client:
|
|
|
+ config:
|
|
|
+ default:
|
|
|
+ connectTimeout: 60000 # 连接超时时间,设置60s
|
|
|
+ readTimeout: 60000
|
|
|
+ loggerLevel: basic
|
|
|
+ compression:
|
|
|
+ request:
|
|
|
+ enabled: true # 开启feign请求时的压缩, application client -> application service
|
|
|
+ mime-types: text/xml,application/xml,application/json # # 设置可以压缩的请求/响应的类型。
|
|
|
+ min-request-size: 512 # 当请求的数据容量达到多少的时候,使用压缩。默认是2048字节
|
|
|
+ response:
|
|
|
+ enabled: true # 开启feign技术响应时的压缩, application service -> application client
|
|
|
resttemplate:
|
|
|
sentinel:
|
|
|
enabled: true
|