
feign
unix_sky
这个作者很懒,什么都没留下…
展开
-
openFeign特性
1. 开启Gzip压缩 #开启压缩可以有效节约网络资源,但是会增加CPU压力,建议把最小压缩的文档大小适度调大一点 #开启gzip 压缩协议 feign.compression.request.enabled=false #响应也开启gzip压缩传输协议 feign.compression.response.enabled=true #最小压缩文件大小为2048m feign.compression.request.min-request-size=2048 #请求数据格式 feign.compressio原创 2020-12-23 21:53:12 · 469 阅读 · 0 评论 -
springCloud中openFeign和eurake集成
1.依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-openfeign</artifactId> </dependency> 启动时开启openfeign @EnableFeignClients @EnableFeignClien原创 2020-12-23 17:40:39 · 121 阅读 · 0 评论