Modify remarks

This commit is contained in:
JiaJu Zhuang
2023-07-03 21:45:05 +08:00
parent b743f74d58
commit 97afff6da9
69 changed files with 77 additions and 304 deletions

View File

@ -1,7 +1,4 @@
/**
* alibaba.com Inc.
* Copyright (c) 2004-2023 All Rights Reserved.
*/
package ai.chat2db.server.test.domain.data.service;
import ai.chat2db.server.domain.api.param.SystemConfigParam;

View File

@ -1,7 +1,4 @@
/**
* alibaba.com Inc.
* Copyright (c) 2004-2023 All Rights Reserved.
*/
package ai.chat2db.server.test.domain.data.service.dialect;
import cn.hutool.core.date.DatePattern;

View File

@ -1,7 +1,4 @@
/**
* alibaba.com Inc.
* Copyright (c) 2004-2023 All Rights Reserved.
*/
package ai.chat2db.server.test.domain.data.service.dialect;
import cn.hutool.core.date.DatePattern;

View File

@ -1,37 +1,9 @@
package ai.chat2db.server.test.temp;
import com.alibaba.fastjson2.JSON;
import lombok.extern.slf4j.Slf4j;
import okhttp3.ConnectionSpec;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import org.junit.jupiter.api.Test;
import javax.net.ssl.SSLContext;
import java.util.Arrays;
@Slf4j
public class TempTest {
@Test
public void test() throws Exception {
System.setProperty("jdk.tls.disabledAlgorithms","SLv3");
log.info("pp:{}", JSON.toJSONString(SSLContext.getDefault().getSupportedSSLParameters().getProtocols()));
OkHttpClient client = new OkHttpClient.Builder()
//添加TLSv1、TLSv1.1、TLSv1.2、TLSv1.3支持
.connectionSpecs(Arrays.asList(ConnectionSpec.COMPATIBLE_TLS))
.build();
Request request = new Request.Builder()
.url("https://test-oss-grow2.alibaba.com/latest-mac.yml")
.build();
String re = client.newCall(request).execute().body().string();
log.info("re:{}", re);
//
// String str = Forest.get("https://test-oss-grow2.alibaba.com/latest-mac.yml").executeAsString();
// log.info("re:{}", str);
}
}