mirror of
https://github.com/YunaiV/ruoyi-vue-pro.git
synced 2026-03-30 03:10:53 +00:00
fix:【ai 大模型】修复 mcp webflux 依赖,导致 SSE Server 失效的问题
This commit is contained in:
@@ -187,17 +187,22 @@
|
|||||||
</exclusions>
|
</exclusions>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- MCP 相关 -->
|
||||||
|
<!--
|
||||||
|
特殊说明:不能使用 spring-ai-starter-mcp-server-webflux 或 spring-ai-starter-mcp-client-webflux !!!
|
||||||
|
原因:项目使用了 SpringMVC,而不是 WebFlux。引入上述 2 个,会导致 SSE Server 失效。
|
||||||
|
-->
|
||||||
<dependency>
|
<dependency>
|
||||||
|
<!-- 服务端 -->
|
||||||
<groupId>org.springframework.ai</groupId>
|
<groupId>org.springframework.ai</groupId>
|
||||||
<artifactId>spring-ai-starter-mcp-server-webmvc</artifactId>
|
<artifactId>spring-ai-starter-mcp-server-webmvc</artifactId>
|
||||||
<version>${spring-ai.version}</version>
|
<version>${spring-ai.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
|
<!-- 客户端 -->
|
||||||
<groupId>org.springframework.ai</groupId>
|
<groupId>org.springframework.ai</groupId>
|
||||||
<artifactId>spring-ai-starter-mcp-client-webflux</artifactId>
|
<artifactId>spring-ai-starter-mcp-client</artifactId>
|
||||||
<version>${spring-ai.version}</version>
|
<version>${spring-ai.version}</version>
|
||||||
<optional>true</optional>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<!-- TinyFlow:AI 工作流 -->
|
<!-- TinyFlow:AI 工作流 -->
|
||||||
|
|||||||
Reference in New Issue
Block a user