refactor: httpclient 4.x → 5.x 完整迁移

Maven 依赖:
- org.apache.httpcomponents:httpclient:4.5.14
- → org.apache.httpcomponents.client5:httpclient5:5.6.1

API 迁移 (14 文件):
- org.apache.http.* → org.apache.hc.client5.http.* / org.apache.hc.core5.http.*
- CloseableHttpResponse → ClassicHttpResponse
- RequestConfig timeout API: 毫秒值 → TimeUnit
- SSL: SSLSocketFactory → SSLConnectionSocketFactoryBuilder
- DefaultHttpClient (已废弃) → HttpClients.custom()

工具类迁移:
- HttpReques.java (基类)
- HttpRequesPost.java (POST)
- HttpRequesGet.java (GET)
- HttpsClientUtil.java (HTTPS)
- SSLClient.java (SSL)
- CommonUtil.java (SSL 工具)

业务 Service 迁移:
- YbHttpUtils.java (医保)
- CrossSystemSendApplyUtil.java (跨系统)
- YbEleHttpServiceImpl.java (医保电子)
- EleInvoiceServiceImpl.java (电子票据)
- ThreePartPayServiceImpl.java (三方支付)
- GfStudentListAppServiceImpl.java (学生体检)
- FoodborneAcquisitionAppServiceImpl.java (食品安全)

删除: WebClientDevWrapper.java (未使用)

验证: BUILD SUCCESS
This commit is contained in:
2026-06-05 11:39:50 +08:00
parent 0e69a01120
commit e0d4c203e4
18 changed files with 236 additions and 248 deletions

View File

@@ -42,7 +42,7 @@
<flowable.version>7.1.0</flowable.version>
<postgresql.version>42.7.10</postgresql.version>
<aviator.version>5.3.3</aviator.version>
<httpclient.version>4.5.14</httpclient.version>
<httpclient5.version>5.6.1</httpclient5.version>
<fastjson2.version>2.0.61</fastjson2.version>
<pinyin4j.version>2.5.1</pinyin4j.version>
<liteflow-spring-boot-starter.version>2.12.4.1</liteflow-spring-boot-starter.version>
@@ -351,9 +351,9 @@
</dependency>
<!-- JSQlParser - MyBatis Plus 3.5.9+ 需要 4.6+ -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>${httpclient.version}</version>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>${httpclient5.version}</version>
</dependency>
</dependencies>
</dependencyManagement>