基于 Spring AI 的餐厅预订系统
多模块项目,结合 ResOs API 和 Spring AI 实现,包含 MCP 服务器、客户端配置及独立聊天机器人 UI。
快速入门
克隆项目
git clone https://github.com/pacphi/spring-ai-resos
构建项目
cd spring-ai-resos mvn clean install
启动后端服务
cd backend mvn clean spring-boot:run -Dspring-boot.run.profiles=dev
启动聊天机器人(以 OpenAI 为例)
cd mcp-client 创建 config/creds.yml 文件并填入 OpenAI API 密钥: spring: ai: openai: api-key: YOUR_API_KEY 运行命令: mvn spring-boot:run -Dspring-boot.run.profiles=openai,dev 访问 http://localhost:8081 查看效果。