新增 xiaoqu-agent-service:P1 骨架(Spring Boot 3.5.16 + Spring AI 1.1.8 MCP Streamable,三数据源连通,codegen 生成 m0/m2 实体,sys.ping/agent.count demo 工具实测调通)

This commit is contained in:
xiaoqu
2026-09-03 11:18:51 +08:00
parent 61fb960435
commit 7a9ea1e888
33 changed files with 2294 additions and 0 deletions
@@ -0,0 +1,28 @@
# dev 环境:内网 192.168.1.181(沿用 xiaoqu-franchisee pom.xml dev profile)
# 密码走环境变量占位符,默认值仅供本地 dev 使用
app:
datasource:
m0: # 权限库 xiaoqu_comples_d(user/agent/authority/propery/agent_manage_district_auth)
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://192.168.1.181:3306/xiaoqu_comples_d?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: ${M0_DB_PASSWORD:kaixinjiuhao}
m1: # 商城库 xiaoqu_mall_d(按需启用)
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://192.168.1.181:3306/xiaoqu_mall_d?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: ${M1_DB_PASSWORD:kaixinjiuhao}
m2: # 业务库 xiaoqu_franchisee_d(warehouse_agent_auth 等)
driver-class-name: com.mysql.cj.jdbc.Driver
jdbc-url: jdbc:mysql://192.168.1.181:3306/xiaoqu_franchisee_d?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
username: root
password: ${M2_DB_PASSWORD:kaixinjiuhao}
spring:
data:
redis:
host: 192.168.1.181
port: 6379
password: ${REDIS_PASSWORD:kaixinjiuhao}
database: 5
timeout: 5s
@@ -0,0 +1,20 @@
server:
port: 8088
spring:
application:
name: xiaoqu-agent-service
profiles:
active: dev
ai:
mcp:
server:
name: xiaoqu-agent-service
version: 0.1.0
# Streamable HTTP 传输(Spring AI 1.1.8 已修复 Boot 3.5.x 下的 streamable NPE,
# 见 spring-projects/spring-ai#6274),默认端点 /mcp
protocol: STREAMABLE
logging:
level:
me.iiv.agent: debug