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> <dependencies>
<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-webflux</artifactId>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.alibaba.fastjson2</groupId> <groupId>com.alibaba.fastjson2</groupId>

View File

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