Commit b0fc5856fba3805f0ea52fc2865dcd4aa29ec897
1 parent
4f312677
fix: 启用 AI 和报表模块并按项目版本对齐 Spring AI BOM
Showing
2 changed files
with
11 additions
and
0 deletions
yudao-dependencies/pom.xml
| @@ -18,6 +18,7 @@ | @@ -18,6 +18,7 @@ | ||
| 18 | <flatten-maven-plugin.version>1.7.2</flatten-maven-plugin.version> | 18 | <flatten-maven-plugin.version>1.7.2</flatten-maven-plugin.version> |
| 19 | <!-- 统一依赖管理 --> | 19 | <!-- 统一依赖管理 --> |
| 20 | <spring.boot.version>3.5.15</spring.boot.version> | 20 | <spring.boot.version>3.5.15</spring.boot.version> |
| 21 | + <spring-ai.version>1.1.8</spring-ai.version> | ||
| 21 | <!-- Web 相关 --> | 22 | <!-- Web 相关 --> |
| 22 | <springdoc.version>2.8.17</springdoc.version> | 23 | <springdoc.version>2.8.17</springdoc.version> |
| 23 | <knife4j.version>4.5.0</knife4j.version> | 24 | <knife4j.version>4.5.0</knife4j.version> |
| @@ -103,6 +104,13 @@ | @@ -103,6 +104,13 @@ | ||
| 103 | <type>pom</type> | 104 | <type>pom</type> |
| 104 | <scope>import</scope> | 105 | <scope>import</scope> |
| 105 | </dependency> | 106 | </dependency> |
| 107 | + <dependency> | ||
| 108 | + <groupId>org.springframework.ai</groupId> | ||
| 109 | + <artifactId>spring-ai-bom</artifactId> | ||
| 110 | + <version>${spring-ai.version}</version> | ||
| 111 | + <type>pom</type> | ||
| 112 | + <scope>import</scope> | ||
| 113 | + </dependency> | ||
| 106 | 114 | ||
| 107 | <!-- 业务组件 --> | 115 | <!-- 业务组件 --> |
| 108 | <dependency> | 116 | <dependency> |
yudao-server/src/main/resources/application.yaml
| @@ -147,6 +147,9 @@ spring: | @@ -147,6 +147,9 @@ spring: | ||
| 147 | 147 | ||
| 148 | spring: | 148 | spring: |
| 149 | ai: | 149 | ai: |
| 150 | + chat: | ||
| 151 | + client: | ||
| 152 | + enabled: false # 关闭 ChatClient.Builder 自动配置:它要求唯一的 ChatModel Bean,而项目会创建多个,导致 ai + report 模块同时引入时启动报错 | ||
| 150 | vectorstore: # 向量存储 | 153 | vectorstore: # 向量存储 |
| 151 | redis: | 154 | redis: |
| 152 | initialize-schema: true | 155 | initialize-schema: true |