Refactor project structure and update Maven configuration for CRM service

This commit is contained in:
bigtian 2025-06-26 17:19:33 +08:00
parent b56a60f0af
commit 363568e004
2 changed files with 10 additions and 15 deletions

View File

@ -20,7 +20,7 @@
<dependencies>
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-starter-mcp-server-webmvc</artifactId>
<artifactId>spring-ai-starter-mcp-server-webflux</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba.fastjson2</groupId>

View File

@ -3,21 +3,16 @@ crm:
tenantId: BIO
token: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJJUXdrczhuUWc4NnJPQkpuenJDUThtbjl1N3FEQ2lWZyJ9.91GO7OMhVbc0tLBRZ7HYiFDEA92PXE7H1gHduwxWu2I
# Using spring-ai-starter-mcp-server-webmvc
spring:
ai:
mcp:
server:
name: webmvc-mcp-server
version: 1.0.0
type: SYNC
instructions: "This server provides weather information tools and resources"
sse-message-endpoint: /crm-mcp/mcp/sse
capabilities:
tool: true
resource: true
prompt: true
completion: true
server:
servlet:
context-path: /crm-mcp
name: crm-mcp-server
version: 0.0.1
type: ASYNC
# 配置 URL 前缀
base-url: /crm-mcp
# 配置 sse 的根路径,默认值为 /sse
sse-endpoint: /sse
sse-message-endpoint: /mcp