Testcontainers
Spring AI 为通过 Testcontainers 运行的模型服务或向量存储建立连接提供了 Spring Boot 自动配置。要启用它,请将以下依赖项添加到您的项目的 Maven pom.xml
文件中:
Spring AI provides Spring Boot auto-configuration for establishing a connection to a model service
or vector store running via Testcontainers. To enable it, add the following dependency
to your project’s Maven pom.xml
file:
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-spring-boot-testcontainers</artifactId>
</dependency>
或添加到 Gradle build.gradle
构建文件中。
or to your Gradle build.gradle
build file.
dependencies {
implementation 'org.springframework.ai:spring-ai-spring-boot-testcontainers'
}
|
Refer to the Dependency Management section to add the Spring AI BOM to your build file. |
Service Connections
以下是 spring-ai-spring-boot-testcontainers
模块中提供的服务连接工厂:
The following service connection factories are provided in the spring-ai-spring-boot-testcontainers
module:
Connection Details | Matched on |
---|---|
|
Containers of type |
|
Containers of type |
|
Containers of type |
|
Containers of type |
|
Containers of type |
|
Containers of type |
|
Containers of type |
|
Containers of type |
|
Containers of type |