Browse Source

label studio导出测试

dev-credits
chenzhihang 11 months ago
parent
commit
d0500f1f00
2 changed files with 1 additions and 4 deletions
  1. +0
    -4
      k8s/template-yaml/k8s-7management.yaml
  2. +1
    -0
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/HttpUtils.java

+ 0
- 4
k8s/template-yaml/k8s-7management.yaml View File

@@ -23,10 +23,6 @@ spec:
value: Asia/Shanghai
- name: JAVA_TOOL_OPTIONS
value: "-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:5005"
- name: HTTP_PROXY
value: "http://172.20.32.253:3128"
- name: HTTPS_PROXY
value: "http://172.20.32.253:3128"
ports:
- containerPort: 9213
volumeMounts:


+ 1
- 0
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/utils/HttpUtils.java View File

@@ -555,6 +555,7 @@ public class HttpUtils {
* @throws IOException 如果请求失败或发生其他 I/O 错误。
*/
public static InputStream getIntputStream(String url, Map<String, String> headers) throws IOException {
clearProxySettings();
URL requestUrl = new URL(url);
HttpURLConnection connection = (HttpURLConnection) requestUrl.openConnection();



Loading…
Cancel
Save