Spring AI
🛠️ 准备:环境与依赖 你需要 JDK 17+ 和 Spring Boot 3.x。 Spring AI 的设计哲学是“像添加一个普通 Starter 一样简单”。在 pom.xml 中,通常需要两步: 1. 通过 BOM 统一管理版本,避免依赖冲突: <dependencyManagement>
🛠️ 准备:环境与依赖 你需要 JDK 17+ 和 Spring Boot 3.x。 Spring AI 的设计哲学是“像添加一个普通 Starter 一样简单”。在 pom.xml 中,通常需要两步: 1. 通过 BOM 统一管理版本,避免依赖冲突: <dependencyManagement>
开始前确认两件事:JDK 17+ 和 Spring Boot 3.x。 在你的 Spring Boot 项目 pom.xml 中,至少加入这一个依赖,就能接通通义千问(DashScope): <dependency> <groupId>com.alibaba.cloud.ai</groupI