|
此版本仍在开发中,尚未被视为稳定版。如需最新的快照版本,请使用 Spring AI 1.1.3! |
Testcontainers
Spring AI 为建立与通过 Testcontainers 运行的模型服务或向量存储的连接提供了 Spring Boot 自动配置。要启用它,请将以下依赖项添加到项目的 Maven pom.xml 文件中:
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-spring-boot-testcontainers</artifactId>
</dependency>
请将以下内容添加到您的Gradle build.gradle 构建文件中。
dependencies {
implementation 'org.springframework.ai:spring-ai-spring-boot-testcontainers'
}
| 请参阅依赖管理部分,将Spring AI BOM添加到您的构建文件中。 |
服务连接
以下服务连接工厂在 spring-ai-spring-boot-testcontainers 模块中提供:
| 连接详细信息 | 匹配于 |
|---|---|
|
类型为 |
|
类型为 |
|
类型为 |
|
类型为 |
|
类型为 |
|
类型为 |
|
类型为 |
|
类型为 |
|
类型为 |
更多的服务连接由 spring boot 模块 spring-boot-testcontainers 提供。有关完整列表,请参阅 Testcontainers 服务连接 文档页面。