|
此版本仍在开发中,尚未被视为稳定版。为了获取最新的快照版本,请使用Spring AI 1.1.3! |
Testcontainers
Spring AI 提供 Spring Boot 的自动配置功能,用于连接到运行于 Testcontainers 上的模型服务或向量存储。要启用该功能,请在您的项目 Maven 的 pom.xml 文件中添加以下依赖项:
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-spring-boot-testcontainers</artifactId>
</dependency>
或者添加到您的Gradle 构建脚本文件中。
dependencies {
implementation 'org.springframework.ai:spring-ai-spring-boot-testcontainers'
}
| 参考以下依赖管理部分,添加Spring AI BOM到你的构建文件中。 |
服务连接
以下提供了一个模块中的服务连接工厂:spring-ai-spring-boot-testcontainers模块。
| 连接详情 | 匹配于 |
|---|---|
|
容器的类型 0 |
|
容器的类型 0 |
|
容器的类型 0 |
|
容器的类型 0 |
|
容器的类型 0 |
|
容器的类型 0 |
|
容器的类型 0 |
|
容器的类型 0 |
|
容器的类型 0 |
更多服务连接由Spring Boot模块提供。参考