修复bug:
1.区域阻断范围字段导出数据与界面上显示不一致,界面上显示全部、导出的excel字段显示为否 2.界面上存在日志总量字段,导出的数据中不存在 3.导出数据包含字段blacklist option,界面上不存在
This commit is contained in:
@@ -66,6 +66,33 @@ public class ClientUtil {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param connTimeOut 连接超时时间
|
||||
* @param readTimeOut 读取超时时间
|
||||
*/
|
||||
public static void initClient(Integer connTimeOut,Integer readTimeOut){
|
||||
try{
|
||||
if(client==null){
|
||||
PoolingHttpClientConnectionManager pcm = new PoolingHttpClientConnectionManager();
|
||||
pcm.setDefaultSocketConfig( SocketConfig.custom(). setSoTimeout(Constants.POOLCM_SOCKET_TIMEOUT). build());
|
||||
pcm.setMaxTotal(Constants.HTTP_MAX_CONNECTION); pcm.setDefaultMaxPerRoute(Constants.DEFAULT_MAX_PERROUTE);
|
||||
|
||||
ClientConfig clientConfig = new ClientConfig();
|
||||
clientConfig.property(ClientProperties.CONNECT_TIMEOUT, connTimeOut);//连接超时时间
|
||||
clientConfig.property(ClientProperties.READ_TIMEOUT, readTimeOut);//读取超时时间
|
||||
clientConfig.property(ApacheClientProperties.CONNECTION_MANAGER, pcm);
|
||||
clientConfig.register(ClientRequestHeaderFilter.class);//请求过滤器,自动添加header信息
|
||||
clientConfig.register(JacksonFeature.class);//json支持
|
||||
clientConfig.register(MultiPartFeature.class);//文件上传支持
|
||||
client = ClientBuilder.newClient(clientConfig);
|
||||
logger.info("客户端初始化成功");
|
||||
}
|
||||
|
||||
}catch (Exception e) {
|
||||
logger.error("初始化客户端失败,请检查证书是否正确!",e);
|
||||
System.exit(1);//程序退出
|
||||
}
|
||||
}
|
||||
/**
|
||||
*path 以https://或http:// 开始不做处理,否则在path前加上 Constants.BASE_URL + Constants.VERSION
|
||||
* @param path
|
||||
|
||||
Reference in New Issue
Block a user