Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions daprdocs/content/en/java-sdk-docs/spring-boot/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,32 @@ By combining Dapr and Spring Boot, we can create infrastructure independent Java
First, we will start with a simple integration covering the `DaprClient` and the [Testcontainers](https://testcontainers.com/) integration, to then use Spring and Spring Boot mechanisms and programming model to leverage the Dapr APIs under the hood. This help teams to remove dependencies such as clients and drivers required to connect to environment specific infrastructure (databases, key-value stores, message brokers, configuration/secret stores, etc.)

{{% alert title="Note" color="primary" %}}
The Spring Boot integration explained in this page is still alpha, hence most artifacts are labeled with 0.13.0.

The Spring Boot integration requires Spring Boot 3.x+ to work. This will not work with Spring Boot 2.x.
The Spring Boot integration still remains in alpha. We need your help and feedback to graduate it.
{{% /alert %}}


## Adding the Dapr and Spring Boot integration to your project

If you already have a Spring Boot application (Spring Boot 3.x+), you can directly add the following dependencies to your project:

If you already have a Spring Boot application, you can directly add the following dependencies to your project:

```
<dependency>
<groupId>io.dapr.spring</groupId>
<artifactId>dapr-spring-boot-starter</artifactId>
<version>0.14.1</version>
<version>0.x.x</version> // see below for the latest versions
</dependency>
<dependency>
<groupId>io.dapr.spring</groupId>
<artifactId>dapr-spring-boot-starter-test</artifactId>
<version>0.14.1</version>
<version>0.x.x</version> // see below for the latest versions
<scope>test</scope>
</dependency>
```

By adding these dependencies you can:
You can find the [latest released version here](https://central.sonatype.com/artifact/io.dapr.spring/dapr-spring-boot-starter).

By adding these dependencies, you can:
- Autowire a `DaprClient` to use inside your applications
- Use the Spring Data and Messaging abstractions and programming model that uses the Dapr APIs under the hood
- Improve your inner-development loop by relying on [Testcontainers](https://testcontainers.com/) to bootstrap Dapr Control plane services and default components
Expand Down
Loading