20250726 部署到hdy中

This commit is contained in:
liangjinglin 2025-07-27 00:20:20 +08:00
parent 12d0732b8e
commit c1f0f4766d
2 changed files with 8 additions and 6 deletions

View File

@ -11,12 +11,13 @@ import org.springframework.context.annotation.Bean;
public class SpringAiDemoApplication { public class SpringAiDemoApplication {
public static void main(String[] args) { public static void main(String[] args) {
String proxy = "127.0.0.1"; // String proxy = "127.0.0.1";
int port = 7897; // int port = 7897;
System.setProperty("proxyType", "4"); // System.setProperty("proxyType", "4");
System.setProperty("proxyPort", String.valueOf(port)); // System.setProperty("proxyPort", String.valueOf(port));
System.setProperty("proxyHost", proxy); // System.setProperty("proxyHost", proxy);
System.setProperty("proxySet", "true"); // System.setProperty("proxySet", "true");
System.out.println("-------正在启动liang spring ai demo-------");
SpringApplication.run(SpringAiDemoApplication.class, args); SpringApplication.run(SpringAiDemoApplication.class, args);
} }

View File

@ -47,6 +47,7 @@ spring:
name: james-hero-mcp-server name: james-hero-mcp-server
version: 1.0.0 version: 1.0.0
type: sync type: sync
sse-endpoint: /mcp/hero
server: server: