Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lets-mica/spring-cloud-java11
使用 java11 的 http client 作为 spring cloud 的 http 底层工具,主要是适配 h2c
https://github.com/lets-mica/spring-cloud-java11
h2c-support spring spring-boot spring-cloud spring-cloud-openfeign springcloud
Last synced: about 2 months ago
JSON representation
使用 java11 的 http client 作为 spring cloud 的 http 底层工具,主要是适配 h2c
- Host: GitHub
- URL: https://github.com/lets-mica/spring-cloud-java11
- Owner: lets-mica
- License: lgpl-3.0
- Created: 2020-02-23T06:31:56.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-04-09T14:29:56.000Z (over 3 years ago)
- Last Synced: 2023-07-07T16:59:18.292Z (over 1 year ago)
- Topics: h2c-support, spring, spring-boot, spring-cloud, spring-cloud-openfeign, springcloud
- Language: Java
- Homepage: https://www.dreamlu.net
- Size: 127 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Spring cloud java11 扩展
[![Maven release](https://img.shields.io/nexus/r/https/oss.sonatype.org/net.dreamlu/spring-cloud-java11.svg?style=flat-square)](https://mvnrepository.com/artifact/net.dreamlu/spring-cloud-java11)
## 功能
1. spring-cloud-openfeign-java11 [spring-cloud-openfeign](https://github.com/spring-cloud/spring-cloud-openfeign) 使用 `feign-java11` 扩展。
2. spring-rest-template-java11 Spring RestTemplate 的 `java11 HttpClient` 扩展。## 专题文章
1. [是时候升级java11了-01-jdk11优势和jdk选择](https://juejin.im/post/5e4df461e51d4526cd1de49a)
2. [是时候升级java11了-02-升级jdk11踩坑记](https://juejin.im/post/5e511a3af265da574b790e87)
3. [是时候升级java11了-03虚拟机Jvm参数设置](https://juejin.im/post/5e572e226fb9a07cd00d8446)
4. [是时候升级java11了-04微服务内http2通信之http2 Clear Text(h2c)](https://juejin.im/post/5e64540ef265da5735505f6e)
5. 是时候升级java11了-05微服务内h2c通信的阻碍和问题解决## 使用
### spring-cloud-openfeign-java11
```xmlnet.dreamlu
spring-cloud-openfeign-java11
2021.1```
### spring-rest-template-java11
```xmlnet.dreamlu
spring-rest-template-java11
2021.1```
## 配置项
### 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 |## 开源推荐
- `mica` 微服务框架:[https://github.com/lets-mica/mica](https://github.com/lets-mica/mica)
- `pig` 宇宙最强微服务(架构师必备):[https://gitee.com/log4j/pig](https://gitee.com/log4j/pig)
- `SpringBlade` 完整的线上解决方案(企业开发必备):[https://gitee.com/smallc/SpringBlade](https://gitee.com/smallc/SpringBlade)
- `IJPay` 支付 SDK 让支付触手可及:[https://gitee.com/javen205/IJPay](https://gitee.com/javen205/IJPay)
- `JustAuth` 史上最全的整合第三方登录的开源库: [https://github.com/zhangyd-c/JustAuth](https://github.com/zhangyd-c/JustAuth)
- `spring-boot-demo` 深度学习并实战 spring boot 的项目: [https://github.com/xkcoding/spring-boot-demo](https://github.com/xkcoding/spring-boot-demo)## 注意事项
参考请注明:参考自 `spring-cloud-java11`:https://github.com/lets-mica/spring-cloud-java11## 微信公众号
![如梦技术](docs/img/dreamlu-weixin.jpg)
精彩内容每日推荐!