This commit is contained in:
2025-11-05 23:51:39 +08:00
parent ad9e3cb8e8
commit 23019db757

View File

@@ -19,9 +19,18 @@ public class RuoYiApplication
public static void main(String[] args)
{
// System.setProperty("spring.devtools.restart.enabled", "false");
// 禁用系统代理确保腾讯文档API调用直接连接
System.setProperty("java.net.useSystemProxies", "false");
System.clearProperty("http.proxyHost");
System.clearProperty("http.proxyPort");
System.clearProperty("https.proxyHost");
System.clearProperty("https.proxyPort");
ConfigurableApplicationContext context = SpringApplication.run(RuoYiApplication.class, args);
Environment env =context.getEnvironment();
System.out.println("实际加载的端口:" + env.getProperty("server.port"));
System.out.println("已禁用系统代理设置腾讯文档API将直接连接");
}