Skip to content
Merged
Changes from all 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
12 changes: 12 additions & 0 deletions daprdocs/content/en/java-sdk-docs/spring-boot/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ private DaprClient daprClient;

This will connect to the default Dapr gRPC endpoint `localhost:50001`, requiring you to start Dapr outside of your application.

{{% alert title="Note" color="primary" %}}
By default, the following properties are preconfigured for `DaprClient` and `DaprWorkflowClient`:
```properties
dapr.client.http-endpoint=http://localhost
dapr.client.http-port=3500
dapr.client.grpc-endpoint=localhost
dapr.client.grpc-port=50001
dapr.client.api-token=<Your Remote App API Token>
```
These values are used by default, but you can override them in your `application.properties` file to suit your environment.
{{% /alert %}}

You can use the `DaprClient` to interact with the Dapr APIs anywhere in your application, for example from inside a REST endpoint:

```java
Expand Down
Loading