20250726 部署到hdy中
This commit is contained in:
parent
12d0732b8e
commit
c1f0f4766d
@ -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);
|
||||
}
|
||||
|
||||
|
@ -47,6 +47,7 @@ spring:
|
||||
name: james-hero-mcp-server
|
||||
version: 1.0.0
|
||||
type: sync
|
||||
sse-endpoint: /mcp/hero
|
||||
|
||||
|
||||
server:
|
||||
|
Loading…
Reference in New Issue
Block a user