如何使用 Testcontainers Dapr 模块进行集成

在 Java 应用中集成 Dapr Testcontainer 模块

您可以通过 Diagrid 提供的 Testcontainers Dapr 模块,在本地为您的 Java 应用集成 Dapr。只需在您的 Maven 项目中添加以下依赖项:

<dependency>
    <groupId>io.diagrid.dapr</groupId>
    <artifactId>testcontainers-dapr</artifactId>
    <version>0.10.x</version>
</dependency>

如果您使用 Spring Boot,也可以使用 Spring Boot Starter。

了解更多关于 Testcontainers Dapr 模块