Refactor project structure and update Maven configuration for CRM service
This commit is contained in:
parent
be63888a3b
commit
530c2073a8
@ -30,7 +30,6 @@ import org.springframework.context.annotation.ComponentScan;
|
|||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
@EnableConfigurationProperties(CrmProperties.class)
|
@EnableConfigurationProperties(CrmProperties.class)
|
||||||
@ComponentScan(basePackages = "net.rzdata.mcp.server.crm")
|
|
||||||
public class McpServerApplication {
|
public class McpServerApplication {
|
||||||
@Autowired
|
@Autowired
|
||||||
private CrmProperties crmProperties;
|
private CrmProperties crmProperties;
|
||||||
|
@ -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 "请求进来了";
|
|
||||||
}
|
|
||||||
}
|
|
@ -2,9 +2,7 @@ crm:
|
|||||||
url: https://www.rzdata.net/bcrm-statis-jwt/
|
url: https://www.rzdata.net/bcrm-statis-jwt/
|
||||||
tenantId: BIO
|
tenantId: BIO
|
||||||
token: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJJUXdrczhuUWc4NnJPQkpuenJDUThtbjl1N3FEQ2lWZyJ9.91GO7OMhVbc0tLBRZ7HYiFDEA92PXE7H1gHduwxWu2I
|
token: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJJUXdrczhuUWc4NnJPQkpuenJDUThtbjl1N3FEQ2lWZyJ9.91GO7OMhVbc0tLBRZ7HYiFDEA92PXE7H1gHduwxWu2I
|
||||||
server:
|
|
||||||
servlet:
|
|
||||||
context-path: /crm-mcp
|
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
main:
|
main:
|
||||||
@ -18,9 +16,9 @@ spring:
|
|||||||
version: 0.0.1
|
version: 0.0.1
|
||||||
type: ASYNC # Recommended for reactive applications
|
type: ASYNC # Recommended for reactive applications
|
||||||
# 配置 sse 的根路径,默认值为 /sse
|
# 配置 sse 的根路径,默认值为 /sse
|
||||||
# 下面的最终路径为 ip:port/sse/mcp
|
# 下面的最终路径为 ip:port/sse/crm-mcp
|
||||||
sse-endpoint: /sse
|
sse-endpoint: /sse
|
||||||
sse-message-endpoint: /mcp
|
sse-message-endpoint: /crm-mcp/mcp
|
||||||
capabilities:
|
capabilities:
|
||||||
tool: true
|
tool: true
|
||||||
resource: true
|
resource: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user