Testcontainers
本站(springdoc.cn)中的内容来源于 spring.io ,原始版权归属于 spring.io。由 springdoc.cn 进行翻译,整理。可供个人学习、研究,未经许可,不得进行任何转载、商用或与之相关的行为。 商标声明:Spring 是 Pivotal Software, Inc. 在美国以及其他国家的商标。 |
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
模块提供了以下服务连接工厂:
连接详情 | 匹配 |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|