1
This commit is contained in:
@@ -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将直接连接");
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user