Skip to content

Commit e666bbd

Browse files
authored
Add note about the dapr.client.* properties (#1467)
Signed-off-by: Matheus Cruz <[email protected]>
1 parent d3674f5 commit e666bbd

File tree

1 file changed

+12
-0
lines changed
  • daprdocs/content/en/java-sdk-docs/spring-boot

1 file changed

+12
-0
lines changed

daprdocs/content/en/java-sdk-docs/spring-boot/_index.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,18 @@ private DaprClient daprClient;
5353

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

56+
{{% alert title="Note" color="primary" %}}
57+
By default, the following properties are preconfigured for `DaprClient` and `DaprWorkflowClient`:
58+
```properties
59+
dapr.client.http-endpoint=http://localhost
60+
dapr.client.http-port=3500
61+
dapr.client.grpc-endpoint=localhost
62+
dapr.client.grpc-port=50001
63+
dapr.client.api-token=<Your Remote App API Token>
64+
```
65+
These values are used by default, but you can override them in your `application.properties` file to suit your environment.
66+
{{% /alert %}}
67+
5668
You can use the `DaprClient` to interact with the Dapr APIs anywhere in your application, for example from inside a REST endpoint:
5769

5870
```java

0 commit comments

Comments
 (0)