pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/lets-mica/spring-cloud-java11

thubassets.com/assets/primer-70be7debc79a8eff.css" /> GitHub - lets-mica/spring-cloud-java11: 使用 java11 的 http client 作为 spring cloud 的 http 底层工具,主要是适配 h2c · GitHub
Skip to content

lets-mica/spring-cloud-java11

Repository files navigation

Spring cloud java11 扩展

Maven release

功能

  1. spring-cloud-openfeign-java11 spring-cloud-openfeign 使用 feign-java11 扩展。
  2. spring-rest-template-java11 Spring RestTemplate 的 java11 HttpClient 扩展。

专题文章

  1. 是时候升级java11了-01-jdk11优势和jdk选择
  2. 是时候升级java11了-02-升级jdk11踩坑记
  3. 是时候升级java11了-03虚拟机Jvm参数设置
  4. 是时候升级java11了-04微服务内http2通信之http2 Clear Text(h2c)
  5. 是时候升级java11了-05微服务内h2c通信的阻碍和问题解决

使用

spring-cloud-openfeign-java11

<dependency>
    <groupId>net.dreamlu</groupId>
    <artifactId>spring-cloud-openfeign-java11</artifactId>
    <version>2021.1</version>
</dependency>

spring-rest-template-java11

<dependency>
    <groupId>net.dreamlu</groupId>
    <artifactId>spring-rest-template-java11</artifactId>
    <version>2021.1</version>
</dependency>

配置项

spring-cloud-openfeign-java11

配置项 默认值 说明
http.client.feign.connection-timeout 2s 连接超时,默认:2秒
http.client.feign.read-timeout 2s 读取超时,默认:2秒
http.client.feign.redirect 重定向规则,默认:ALWAYS
http.client.feign.version http 版本,默认:HTTP_2

spring-rest-template-java11

配置项 默认值 说明
http.client.rest.connection-timeout 2s 连接超时,默认:2秒
http.client.rest.level 日志级别(NONE, BASIC, HEADERS, BODY;),默认:BASIC
http.client.rest.read-timeout 2s 读取超时,默认:2秒
http.client.rest.redirect 重定向规则,默认:ALWAYS
http.client.rest.version http 版本,默认:HTTP_2

开源推荐

注意事项

参考请注明:参考自 spring-cloud-java11https://github.com/lets-mica/spring-cloud-java11

微信公众号

如梦技术

精彩内容每日推荐!

About

使用 java11 的 http client 作为 spring cloud 的 http 底层工具,主要是适配 h2c

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy