Testcontainers
Spring AI 提供 Spring Boot 自動配置,用於建立與透過 Testcontainers 運行的模型服務或向量儲存庫的連線。若要啟用它,請將以下依賴項新增至您專案的 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
模組中提供了以下服務連線工廠
連線詳細資訊 |
比對依據 |
|
|
|
|
|
|
|
|
|
|
|
|
|
名為 "typesense/typesense" 的容器 |
|
|