src/main/java/org/springblade/common/utils/HttpClientUtils.java
@@ -570,7 +570,8 @@ CloseableHttpClient httpClient = HttpClients.createDefault(); try { BasicResponseHandler handler = new BasicResponseHandler(); StringEntity entity = new StringEntity(json, "utf-8");//解决中文乱码问题 //解决中文乱码问题 StringEntity entity = new StringEntity(json, "utf-8"); entity.setContentEncoding("UTF-8"); entity.setContentType("application/json"); httpPost.setEntity(entity); @@ -578,7 +579,6 @@ return result; } catch (Exception e) { e.printStackTrace(); } finally { try { httpClient.close();