Skip to content

Commit 82f4eb8

Browse files
committed
更新README中关于HttpClient 5.x相关描述
miniapp默认使用HttpClient 5.x
1 parent 2c5a339 commit 82f4eb8

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,10 @@
133133
**Spring Boot 配置示例:**
134134

135135
```properties
136-
# 使用 HttpClient 5.x(推荐,MP/CP/Channel/QiDian 模块默认)
136+
# 使用 HttpClient 5.x(推荐,MP/MiniApp/CP/Channel/QiDian 模块默认)
137137
wx.mp.config-storage.http-client-type=HttpComponents
138138

139-
# 使用 HttpClient 4.x(兼容模式,MiniApp 模块默认
139+
# 使用 HttpClient 4.x(兼容模式)
140140
wx.mp.config-storage.http-client-type=HttpClient
141141

142142
# 使用 OkHttp
@@ -153,11 +153,10 @@ wx.mp.config-storage.http-client-type=HTTP_COMPONENTS # 注意使用大写下
153153
```
154154

155155
**注意事项:**
156-
1. **MiniApp 模块**已提供 `HttpComponents`(HttpClient 5.x)类型的配置选项,但当前默认仍为 HttpClient 4.x;如需启用 HttpClient 5.x,请确保所使用的集成模块(如 `wx-java-miniapp-spring-boot-starter``wx-java-miniapp-solon-plugin`)版本已支持该选项
157-
2. **MP、Channel、QiDian 模块**已完整支持 HttpClient 5.x,默认推荐使用
158-
3. **CP 模块**的支持情况取决于具体使用的 Starter 版本,请参考对应模块文档
159-
4. 如需使用 OkHttp 或 Jodd-http,需在项目中添加对应的依赖(scope为provided)
160-
5. HttpClient 4.x 和 HttpClient 5.x 可以共存,按需配置即可
156+
1. **MP、MiniApp、Channel、QiDian 模块**已完整支持 HttpClient 5.x,默认推荐使用
157+
2. **CP 模块**的支持情况取决于具体使用的 Starter 版本,请参考对应模块文档
158+
3. 如需使用 OkHttp 或 Jodd-http,需在项目中添加对应的依赖(scope为provided)
159+
4. HttpClient 4.x 和 HttpClient 5.x 可以共存,按需配置即可
161160

162161

163162
---------------------------------

0 commit comments

Comments
 (0)