File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 133133** Spring Boot 配置示例:**
134134
135135``` properties
136- # 使用 HttpClient 5.x(推荐,MP/CP/Channel/QiDian 模块默认)
136+ # 使用 HttpClient 5.x(推荐,MP/MiniApp/ CP/Channel/QiDian 模块默认)
137137wx.mp.config-storage.http-client-type =HttpComponents
138138
139- # 使用 HttpClient 4.x(兼容模式,MiniApp 模块默认 )
139+ # 使用 HttpClient 4.x(兼容模式)
140140wx.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---------------------------------
You can’t perform that action at this time.
0 commit comments