Refactor project structure and update Maven configuration for CRM service

This commit is contained in:
bigtian 2025-06-26 16:41:50 +08:00
parent be63888a3b
commit 530c2073a8
3 changed files with 3 additions and 17 deletions

View File

@ -30,7 +30,6 @@ import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@EnableConfigurationProperties(CrmProperties.class)
@ComponentScan(basePackages = "net.rzdata.mcp.server.crm")
public class McpServerApplication {
@Autowired
private CrmProperties crmProperties;

View File

@ -1,11 +0,0 @@
package net.rzdata.mcp.server.crm.controller;
import org.springframework.web.bind.annotation.GetMapping;
@org.springframework.web.bind.annotation.RestController
public class RestController {
@GetMapping("/test")
public String test(){
return "请求进来了";
}
}

View File

@ -2,9 +2,7 @@ crm:
url: https://www.rzdata.net/bcrm-statis-jwt/
tenantId: BIO
token: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJJUXdrczhuUWc4NnJPQkpuenJDUThtbjl1N3FEQ2lWZyJ9.91GO7OMhVbc0tLBRZ7HYiFDEA92PXE7H1gHduwxWu2I
server:
servlet:
context-path: /crm-mcp
spring:
main:
@ -18,9 +16,9 @@ spring:
version: 0.0.1
type: ASYNC # Recommended for reactive applications
# 配置 sse 的根路径,默认值为 /sse
# 下面的最终路径为 ip:port/sse/mcp
# 下面的最终路径为 ip:port/sse/crm-mcp
sse-endpoint: /sse
sse-message-endpoint: /mcp
sse-message-endpoint: /crm-mcp/mcp
capabilities:
tool: true
resource: true