The Dapr-Spring-Boot-Starter documentation
The document you are viewing was generated by Copilot, translated from a Chinese document. It may not be updated promptly. If there are any questions, please refer to the Chinese document as the standard.
integrates Dapr with Spring Boot, simplifying the setup of Dapr clients by adding a series of dependencies and appropriate annotations to the project. The goal of this project is to provide a development experience for Dapr for Spring Boot that is close to that of Spring Cloud.
Please note:
This project does not rewrite any logic of the Dapr Java SDK or even the official Dapr Spring Boot artifact; it only enhances the Spring Boot experience. You may need to refer to the Dapr Java SDK to understand the use of the Dapr Client and the official Dapr Spring Boot artifact (such as Pubsub, etc.)
Table of Contents
- dapr-client-spring-boot-starter
- dapr-openfeign-spring-boot-starter, feign-dapr-client
- dapr-secretstore-spring-boot-starter
- Troubleshooting
- Sample Projects
- Version Overview
- Contributing
How to Download Artifacts
The artifacts are released on Github Packages, JitPack, and Maven Central for daily builds, SNAPSHOT versions, and official releases. Please choose the appropriate version to use.
-
Using Github Packages See Version Overview for details
If using builds hosted on Github Packages, you need to set up authentication correctly as per GitHub’s official documentation to download the artifacts.
Refer to the Gradle Instructions and Maven Instructions for details.
After configuring the repository, add the following dependencies to your Maven or Gradle:
Maven
<dependency> <groupId>icu.fangkehou</groupId> <artifactId>dapr-spring-boot-starter</artifactId> <version>0.4.0-SNAPSHOT</version> </dependency>
Gradle
dependencies { implementation 'icu.fangkehou:dapr-spring-boot-starter:0.4.0-SNAPSHOT' }
Please note: The above version number may be outdated, ensure you are using the latest SNAPSHOT version. Components may require you to introduce additional dependencies.
See Version Overview for details
-
Using JitPack
If using builds hosted on JitPack Packages, you need to set up the repository correctly as per JitPack’s official documentation to download the artifacts.
For more information, please refer to the JitPack documentation.
After setting up the repository, please add the following dependencies to your Maven or Gradle build:
Maven
<dependency> <groupId>icu.fangkehou.dapr-spring</groupId> <artifactId>dapr-spring-boot-starter</artifactId> <version>0.4.0-SNAPSHOT</version> </dependency>
Gradle
dependencies { implementation 'icu.fangkehou.dapr-spring:dapr-spring-boot-starter:0.4.0-SNAPSHOT' }
Please note: The above version number may be outdated, please make sure you are using the latest SNAPSHOT version. Components may require you to introduce additional dependencies.
For details, refer to the Version Overview
-
Using Maven Central
After setting up the repository, please add the following dependencies to your Maven or Gradle build:
Maven
<dependency> <groupId>icu.fangkehou</groupId> <artifactId>dapr-spring-boot-starter</artifactId> <version>0.4.0</version> </dependency>
Gradle
dependencies { implementation 'icu.fangkehou:dapr-spring-boot-starter:0.4.0' }
Please note: The above version number may be outdated, please make sure you are using the latest version. Components may require you to introduce additional dependencies.
For details, refer to the Version Overview