diff --git a/src/main/java/com/example/springaidemo/SpringAiDemoApplication.java b/src/main/java/com/example/springaidemo/SpringAiDemoApplication.java index 681fbaf..cf36920 100644 --- a/src/main/java/com/example/springaidemo/SpringAiDemoApplication.java +++ b/src/main/java/com/example/springaidemo/SpringAiDemoApplication.java @@ -11,12 +11,13 @@ import org.springframework.context.annotation.Bean; public class SpringAiDemoApplication { public static void main(String[] args) { - String proxy = "127.0.0.1"; - int port = 7897; - System.setProperty("proxyType", "4"); - System.setProperty("proxyPort", String.valueOf(port)); - System.setProperty("proxyHost", proxy); - System.setProperty("proxySet", "true"); +// String proxy = "127.0.0.1"; +// int port = 7897; +// System.setProperty("proxyType", "4"); +// System.setProperty("proxyPort", String.valueOf(port)); +// System.setProperty("proxyHost", proxy); +// System.setProperty("proxySet", "true"); + System.out.println("-------正在启动liang spring ai demo-------"); SpringApplication.run(SpringAiDemoApplication.class, args); } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index fcc7d09..c1d81f8 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -47,6 +47,7 @@ spring: name: james-hero-mcp-server version: 1.0.0 type: sync + sse-endpoint: /mcp/hero server: