修改接口返回的编码格式
This commit is contained in:
parent
a826c4c3e8
commit
cb3117d5ca
|
@ -1833,7 +1833,7 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
||||||
|
|
||||||
HttpEntity entity = response.getEntity();
|
HttpEntity entity = response.getEntity();
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
body.append(EntityUtils.toString(entity));
|
body.append(EntityUtils.toString(entity,"UTF-8"));
|
||||||
}
|
}
|
||||||
flag = true;
|
flag = true;
|
||||||
logger.info("返回结果:" + body);
|
logger.info("返回结果:" + body);
|
||||||
|
@ -1915,7 +1915,7 @@ public class SysApplicationServiceImpl extends BaseService<SysApplicationEntity,
|
||||||
response = closeableHttpClient.execute(get);
|
response = closeableHttpClient.execute(get);
|
||||||
HttpEntity entity = response.getEntity();
|
HttpEntity entity = response.getEntity();
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
body.append(EntityUtils.toString(entity));
|
body.append(EntityUtils.toString(entity,"UTF-8"));
|
||||||
}
|
}
|
||||||
flag = true;
|
flag = true;
|
||||||
logger.info("返回结果:" + body);
|
logger.info("返回结果:" + body);
|
||||||
|
|
Loading…
Reference in New Issue