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
模块中提供了以下服务连接工厂
连接详情 | 匹配项 |
---|---|
|
类型为 |
|
类型为 |
|
类型为 |
|
类型为 |
|
类型为 |
|
类型为 |
|
类型为 |
|
类型为 |
|
类型为 |